public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* RE: OMAP support in mainline?
@ 2008-10-03  7:20 Nathan Monson
  2008-10-03  7:52 ` Felipe Balbi
  0 siblings, 1 reply; 14+ messages in thread
From: Nathan Monson @ 2008-10-03  7:20 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org

On Thu, Sep 18, 2008 at 3:26PM, Felipe Balbi wrote:
> Yeah, we lost some musb history when it went to mainline. I didn't test
> this patch yet cuz I've been quite busy at work, but it should make
> beagle work. Could you tell me if makes it work ?

This patch has been working for me until the latest round of twl4030 changes.

Commit fde13f8fc7de977e71304fd500fed029b41ceb19/"move twl4030-usb to
platform-device" changed subsys_initcall to module_init in
twl4030-usb.

Now, twl4030-usb is initialized after musb.  This means
otg_set_transceiver is called later in boot, so the patch below gets
null back from otg_get_transceiver and oopses on *xceiv.

Unfortunately, without the patch, USB host doesn't work on the BeagleBoard.

Other than this, the new kernel seems to work pretty well for me.

- Nathan

> diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
> index 9d2dcb1..f7fe91e 100644
> --- a/drivers/usb/musb/omap2430.c
> +++ b/drivers/usb/musb/omap2430.c
> @@ -215,12 +215,14 @@ void musb_platform_set_mode(struct musb *musb, u8 musb_mode)
>
> int __init musb_platform_init(struct musb *musb)
> {
> +       struct otg_transceiver *xceiv = otg_get_transceiver();
> u32 l;
>
> #if defined(CONFIG_ARCH_OMAP2430)
> omap_cfg_reg(AE5_2430_USB0HS_STP);
> #endif
>
> +       memcpy(musb->xceiv, xceiv, sizeof(*xceiv));
> musb_platform_resume(musb);
>
> l = omap_readl(OTG_SYSCONFIG);

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-10-06  6:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-03  7:20 OMAP support in mainline? Nathan Monson
2008-10-03  7:52 ` Felipe Balbi
2008-10-03  8:36   ` David Brownell
2008-10-03  9:45     ` [PATCH] i2c: change twl4030-usb back to subsys_initcall Felipe Balbi
2008-10-03 10:19       ` Koen Kooi
2008-10-03 12:04         ` Felipe Balbi
2008-10-03 13:28           ` Tony Lindgren
2008-10-03 13:43             ` Felipe Balbi
2008-10-03 20:05       ` Nathan Monson
2008-10-03 23:48         ` Felipe Balbi
2008-10-03 23:50       ` Felipe Balbi
2008-10-06  6:41         ` Tony Lindgren
2008-10-04  1:23     ` OMAP support in mainline? Nathan Monson
2008-10-04  1:40       ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox