diff options
author | Peter Korsgaard <peter@korsgaard.com> | 2023-06-28 14:26:48 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2023-07-03 10:46:34 +0200 |
commit | d266d4b63873c2176677a79d48faeb9db7d4acdd (patch) | |
tree | 31f94b6f7f5965471adffbe46e6c3a43ecc2768a | |
parent | ac29400f1f4ae5df2542bacfe4c142db7824bd6c (diff) | |
download | u-boot-d266d4b63873c2176677a79d48faeb9db7d4acdd.zip u-boot-d266d4b63873c2176677a79d48faeb9db7d4acdd.tar.gz u-boot-d266d4b63873c2176677a79d48faeb9db7d4acdd.tar.bz2 |
usb: dwc3-generic: Ensure reset GPIO is configured as an output
GPIOD_ACTIVE_LOW is not enough to configure a GPIO as an output, we need
GPIOD_IS_OUT as well.
Fixes: b252d79b0936d60b ("usb: dwc3: Add support to reset usb ULPI phy")
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r-- | drivers/usb/dwc3/dwc3-generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 66da5a8..35e4b36 100644 --- a/drivers/usb/dwc3/dwc3-generic.c +++ b/drivers/usb/dwc3/dwc3-generic.c @@ -105,7 +105,7 @@ static int dwc3_generic_probe(struct udevice *dev, if (CONFIG_IS_ENABLED(DM_GPIO) && device_is_compatible(dev->parent, "xlnx,zynqmp-dwc3")) { priv->ulpi_reset = devm_gpiod_get_optional(dev->parent, "reset", - GPIOD_ACTIVE_LOW); + GPIOD_IS_OUT | GPIOD_ACTIVE_LOW); /* property is optional, don't return error! */ if (priv->ulpi_reset) { /* Toggle ulpi to reset the phy. */ |