ramips: add a patch to make dwc2 work with boards that have an old bootloader
[openwrt.git] / target / linux / ramips / patches-3.10 / 0035-USB-dwc2.patch
1 Index: linux-3.10.1/drivers/staging/dwc2/hcd.c
2 ===================================================================
3 --- linux-3.10.1.orig/drivers/staging/dwc2/hcd.c        2013-07-13 20:42:41.000000000 +0200
4 +++ linux-3.10.1/drivers/staging/dwc2/hcd.c     2013-07-15 13:25:34.220821275 +0200
5 @@ -2712,6 +2712,8 @@
6  
7         dev_dbg(hsotg->dev, "DWC OTG HCD INIT\n");
8  
9 +       writel(0, hsotg->regs + 0xe00);
10 +
11         /*
12          * Attempt to ensure this device is really a DWC_otg Controller.
13          * Read and verify the GSNPSID register contents. The value should be