]> git.baikalelectronics.ru Git - kernel.git/commit
usb: ohci-omap: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 20 Jul 2020 13:55:24 +0000 (15:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2020 11:42:37 +0000 (13:42 +0200)
commit0de3ad5b9c49d0b884ade24d0197e3050649d28c
tree6758f45e64bcc9fb427f73655e2407b4fe16ebfa
parentfc032588eaaa6349f18edb30142ae32d1393deaa
usb: ohci-omap: Convert to use GPIO descriptors

The OMAP1 OHCI driver is using the legacy GPIO API to grab some
random GPIO lines. One is from the TPS65010 chip and used for
power, another one is for overcurrent and while the driver picks
this line it doesn't watch it at all.

Convert the driver and the OMAP1 OSK board file to pass these
two GPIOs as machine described GPIO descriptors.

I noticed the overcurrent GPIO line is not really used in the
code so dropped in a little comment for other developers.

Cc: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Cc: Tony Lindgren <tony@atomide.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20200720135524.100374-2-linus.walleij@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-omap1/board-osk.c
drivers/usb/host/ohci-omap.c