diff options
-rw-r--r-- | drivers/usb/phy/phy-generic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c index 980c9dee09eb..41b8aff9b925 100644 --- a/drivers/usb/phy/phy-generic.c +++ b/drivers/usb/phy/phy-generic.c | |||
@@ -322,6 +322,8 @@ static int usb_phy_generic_probe(struct platform_device *pdev) | |||
322 | gpiod_to_irq(nop->gpiod_vbus), err); | 322 | gpiod_to_irq(nop->gpiod_vbus), err); |
323 | return err; | 323 | return err; |
324 | } | 324 | } |
325 | nop->phy.otg->state = gpiod_get_value(nop->gpiod_vbus) ? | ||
326 | OTG_STATE_B_PERIPHERAL : OTG_STATE_B_IDLE; | ||
325 | } | 327 | } |
326 | 328 | ||
327 | nop->phy.init = usb_gen_phy_init; | 329 | nop->phy.init = usb_gen_phy_init; |