Skip to content

Commit

Permalink
usb: dwc2: fix role switch breakage
Browse files Browse the repository at this point in the history
Commit beb7e59 "staging: dwc2: add check on dwc2_core_reset
return" broke the B -> A role switching on OTG-enabled platforms.
This commit fixes it.

Reported-by: Dinh Nguyen <[email protected]>
Tested-by: Dinh Nguyen <[email protected]>
Signed-off-by: Paul Zimmerman <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Paul Zimmerman authored and gregkh committed Feb 4, 2014
1 parent 861e0f5 commit a23666c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/dwc2/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static int dwc2_hs_phy_init(struct dwc2_hsotg *hsotg, bool select_phy)
int retval = 0;

if (!select_phy)
return -ENODEV;
return 0;

usbcfg = readl(hsotg->regs + GUSBCFG);

Expand Down

0 comments on commit a23666c

Please sign in to comment.