[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170920212928.GC3547@mobilestation>
Date: Thu, 21 Sep 2017 00:29:28 +0300
From: Serge Semin <fancer.lancer@...il.com>
To: Rob Herring <robh@...nel.org>
Cc: richard.leitner@...data.com, gregkh@...uxfoundation.org,
mark.rutland@....com, Sergey.Semin@...latforms.ru,
linux-usb@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 9/9 v2] usb: usb251xb: Use GPIO descriptor consumer
interface
On Wed, Sep 20, 2017 at 03:52:57PM -0500, Rob Herring <robh@...nel.org> wrote:
> On Sat, Sep 16, 2017 at 01:42:20PM +0300, Serge Semin wrote:
> > The driver used to be developed with legacy GPIO API support. It's
> > better to use descriptor-based interface for several reasons. First
> > of all the legacy API doesn't support the ACTIVE_LOW/HIGH flag of dts
> > nodes, which is essential since different hardware may have different
> > GPIOs connectivity including the logical value inversion. Secondly,
> > by requesting the reset GPIO descriptor the driver prevent the other
> > applications from changing its value. And last but not least the
> > legacy GPIO interface should be avoided in the new code due to it
> > obsolescence.
>
> All this has nothing to do with the binding. Please make the binding
> change separate and state why it should be optional.
>
Ok.
> >
> > Signed-off-by: Serge Semin <fancer.lancer@...il.com>
> > ---
> > Documentation/devicetree/bindings/usb/usb251xb.txt | 2 +-
> > drivers/usb/misc/usb251xb.c | 34 +++++++++-------------
> > 2 files changed, 15 insertions(+), 21 deletions(-)
Powered by blists - more mailing lists