Re: OMAP3430: MUSB host and hot-plugging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 20, 2008 at 10:11:03AM -0700, Kevin Hilman wrote:
> "Pandita, Vikram" <vikram.pandita@xxxxxx> writes:
> 
> > Felipe
> >
> >>Sent: Thursday, March 20, 2008 6:09 PM
> >>To: Pandita, Vikram
> >>Cc: Kevin Hilman; Linux omap
> >>Subject: RE: OMAP3430: MUSB host and hot-plugging
> >>
> >>
> >>> If you can provide us the procedure to enable hot-plugging for MUSB on
> >>> OMAP3430, we will look into this issue.
> >>
> >>As far as musb driver is concerned it should be just a mater of
> >>building it with otg support. But as of now, I cannot get id
> >>pin status to musb using twl4030.
> >>
> >>Maybe we still have some missing pieces on linux-omap, which I'm
> >>researching on that.
> >
> >
> >  I meant if you could pass on how you have written the hot plugging
> > function/agent for MUSB.  I have not tried hot-plugging on omap.
> 
> There's no additional code.  You can reproduce this with current OMAP
> git, and default omap_3430sdp_defconfig, which enables MUSB in OTG
> mode.
> 
> Here's what I do:
> 
> - plug in cable (mini-A to A-female)
> - boot
> - after booting, plug in USB storage device.
>   on my userland, hotplug does its thing, and the usb/scsi storage modules
>   are loaded, and I can then access /dev/sda* 
> - unplug USB key.
>   kernel msgs show the disconnect happens etc.
> 
> - replug USB key --- nothing happens

Same here. Although if you unplug and replug right away, it'll work.
That's because musb was still waiting in a_wait_bcon state and I didn't
let it fall into b_idle.

That's why I'm suspecting on twl4030_phy_{suspend,resume}() routines.
After reading twl4030's docs I couldn't find anything suspicious on the
code but I'll dig more tomorrow and after the holidays.

-- 
Best Regards,

Felipe Balbi
me@xxxxxxxxxxxxxxx
http://blog.felipebalbi.com
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux