Re: [PATCH v2] usb: phy: phy-gpio-vbus-usb: Convert to GPIO descriptors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Linus Walleij <linus.walleij@xxxxxxxxxx> writes:

> Instead of using the legacy GPIO API and keeping track on
> polarity inversion semantics in the driver, switch to use
> GPIO descriptors for this driver and change all consumers
> in the process.
>
> This makes it possible to retire platform data completely:
> the only remaining platform data member was "wakeup" which
> was intended to make the vbus interrupt wakeup capable,
> but was not set by any users and thus remained unused. VBUS
> was not waking any devices up. Leave a comment about it so
> later developers using the platform can consider setting it
> to always enabled so plugging in USB wakes up the platform.
>
> Cc: Robert Jarzmik <robert.jarzmik@xxxxxxx>
> Cc: Daniel Mack <daniel@xxxxxxxxxx>
> Cc: Haojian Zhuang <haojian.zhuang@xxxxxxxxx>
> Acked-by: Felipe Balbi <balbi@xxxxxxxxxx>
> Acked-by: Sylwester Nawrocki <snawrocki@xxxxxxxxxx>
> Acked-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
> ---
> ChangeLog v1->v2:
> - Fix a chip label typo in mach-s3c64xx
> - Collect the ACKs!

Hi Linus,

Throughout this patch, if I get it right, you suppose that :
 - the gpio_request() for the vbus is called as gpio_request(xx, gpio, "vbus")
 - the gpio_request() for the pullup is called as gpio_request(xx, gpio, "pullup")

My understanding from drivers/usb/phy/phy-gpio-vbus-usb.c is that these name are
:
 - "vbus_detect"
 - "udc_pullup"

Have I missed something ?

Cheers.

--
Robert



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux