]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: phy: phy-generic: Fix reset behaviour on legacy boot
authorRoger Quadros <rogerq@ti.com>
Thu, 13 Aug 2015 10:28:42 +0000 (13:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:43:23 +0000 (14:43 -0700)
commit860964cd6311e32b217a180c262c938d366a28b4
tree62435474a2ce63bea6b57f16594944fc111170f8
parent74830c233c3c2dc4b034399f3d4d029e35db9a11
usb: phy: phy-generic: Fix reset behaviour on legacy boot

commit 762982db33b23029e98c844611e2e8beeb75bc0d upstream.

The gpio-desc migration done in v4.0 caused a regression
with legacy boots due to reversed reset logic.
e.g. omap3-beagle USB host breaks on legacy boot.

Request the reset GPIO with GPIOF_ACTIVE_LOW flag so that
it matches the driver logic and pin behaviour.

Fixes: e9f2cefb0cdc ("usb: phy: generic: migrate to gpio_desc")
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-generic.c