mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
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: e9f2cefb0c
("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>
This commit is contained in:
parent
523d5daf86
commit
762982db33
1 changed files with 2 additions and 1 deletions
|
@ -232,7 +232,8 @@ int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_generic *nop,
|
||||||
clk_rate = pdata->clk_rate;
|
clk_rate = pdata->clk_rate;
|
||||||
needs_vcc = pdata->needs_vcc;
|
needs_vcc = pdata->needs_vcc;
|
||||||
if (gpio_is_valid(pdata->gpio_reset)) {
|
if (gpio_is_valid(pdata->gpio_reset)) {
|
||||||
err = devm_gpio_request_one(dev, pdata->gpio_reset, 0,
|
err = devm_gpio_request_one(dev, pdata->gpio_reset,
|
||||||
|
GPIOF_ACTIVE_LOW,
|
||||||
dev_name(dev));
|
dev_name(dev));
|
||||||
if (!err)
|
if (!err)
|
||||||
nop->gpiod_reset =
|
nop->gpiod_reset =
|
||||||
|
|
Loading…
Reference in a new issue