Skip to content
Snippets Groups Projects
Commit d266d4b6 authored by Peter Korsgaard's avatar Peter Korsgaard Committed by Marek Vasut
Browse files

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: b252d79b ("usb: dwc3: Add support to reset usb ULPI phy")
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent ac29400f
No related branches found
No related tags found
No related merge requests found
......@@ -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. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment