Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364687
b: refs/heads/master
c: cd051da
h: refs/heads/master
i:
  364685: 1e1e71c
  364683: 0a76e69
  364679: 0ee75c9
  364671: fca8e84
v: v3
  • Loading branch information
Vivek Gautam authored and Felipe Balbi committed Mar 18, 2013
1 parent 4b11175 commit b0b14a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b5a726b30436ab332aea4133bbfa0484d1c658b3
refs/heads/master: cd051da2c81c8a86f331b4caa0c135c33d3ea3f6
7 changes: 6 additions & 1 deletion trunk/drivers/usb/dwc3/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,12 @@ static int dwc3_probe(struct platform_device *pdev)
goto err1;
}

mode = DWC3_MODE(dwc->hwparams.hwparams0);
if (IS_ENABLED(CONFIG_USB_DWC3_HOST))
mode = DWC3_MODE_HOST;
else if (IS_ENABLED(CONFIG_USB_DWC3_GADGET))
mode = DWC3_MODE_DEVICE;
else
mode = DWC3_MODE_DRD;

switch (mode) {
case DWC3_MODE_DEVICE:
Expand Down

0 comments on commit b0b14a0

Please sign in to comment.