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)
committerFelipe Balbi <balbi@ti.com>
Mon, 14 Sep 2015 15:15:08 +0000 (10:15 -0500)
commit762982db33b23029e98c844611e2e8beeb75bc0d
treea6d375a11508a4321f50131817febf69e5388922
parent523d5daf86e5e8b540bdc91e090197b5665f0519
usb: phy: phy-generic: Fix reset behaviour on legacy boot

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")
Cc: <stable@vger.kernel.org> # 4.0+
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-generic.c