Update tree with local changes. Disable WiLink4 drivers in the image and enable the...
[openpandora.oe.git] / recipes / linux / omap3-pandora-kernel / musb-mru-otgfix.diff
1 From: Mans Rullgard <mans@mansr.com>
2 Date: Sat, 6 Sep 2008 15:11:00 +0000 (+0100)
3 Subject: usb: musb: fix something
4 X-Git-Url: http://git.mansr.com/?p=linux-omap;a=commitdiff_plain;h=1e5bc41773bb981b3a89bd762becf98c72be5e4c
5
6 usb: musb: fix something
7
8 This makes USB work on the Beagleboard.  I don't know why.
9 ---
10
11 diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
12 index e07cad8..4d6ff26 100644
13 --- a/drivers/usb/musb/musb_core.c
14 +++ b/drivers/usb/musb/musb_core.c
15 @@ -1819,6 +1819,9 @@ allocate_instance(struct device *dev, void __iomem *mbase)
16                 ep->epnum = epnum;
17         }
18  
19 +#ifdef CONFIG_USB_MUSB_OTG
20 +       otg_set_transceiver(&musb->xceiv);
21 +#endif
22         musb->controller = dev;
23         return musb;
24  }
25 diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
26 index 9d2dcb1..51af80b 100644
27 --- a/drivers/usb/musb/omap2430.c
28 +++ b/drivers/usb/musb/omap2430.c
29 @@ -215,12 +215,14 @@ void musb_platform_set_mode(struct musb *musb, u8 musb_mode)
30  
31  int __init musb_platform_init(struct musb *musb)
32  {
33 +       struct otg_transceiver *xceiv = otg_get_transceiver();
34         u32 l;
35  
36  #if defined(CONFIG_ARCH_OMAP2430)
37         omap_cfg_reg(AE5_2430_USB0HS_STP);
38  #endif
39  
40 +       musb->xceiv = *xceiv;
41         musb_platform_resume(musb);
42  
43         l = omap_readl(OTG_SYSCONFIG);