usb: ohci-omap: Fix descriptor conversion
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 30 Nov 2020 08:30:33 +0000 (09:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Dec 2020 15:03:52 +0000 (16:03 +0100)
commit45c5775460f32ed8cdb7c16986ae1a2c254346b3
tree5e27e69527ba06b40775c5578486f08b21a91e20
parent97ad4a77f23e30801d2c0ef0c12b59f0e5760e6e
usb: ohci-omap: Fix descriptor conversion

There were a bunch of issues with the patch converting the
OMAP1 OSK board to use descriptors for controlling the USB
host:

- The chip label was incorrect
- The GPIO offset was off-by-one
- The code should use sleeping accessors

This patch tries to fix all issues at the same time.

Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Reported-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Fixes: 15d157e87443 ("usb: ohci-omap: Convert to use GPIO descriptors")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20201130083033.29435-1-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