The situation is I have a DM355 with an SD card. I would like the SD
card to be mounted for
used by Linux most of the time. But, on insertion of a USB cable I
want to unmount the card
and "mount" (although it's really a modprobe) the card via
g_file_storage. Then, when the cable is
unplugged I want to remount it as a linux file system.

It seems that hotplug would do that, and there seem to be calls to the
hotplug system in the gadget code. I don't remember if I found them in
the Iventra driver code or not. I decided at that point to see if
anyone had
dealt with this already.

All I really need is to have some scripts called on USB insert/remove.
If you have any ideas about how to
do that, I would be really greatful.

Chris

On Feb 6, 2008 9:44 PM, Nori, Sekhar <[EMAIL PROTECTED]> wrote:
> Chris,
>
> Hotplug in USB comes into picture in host mode, when a device plugs into
> it. Why do you want to trap the cable insertion event?
>
> Thanks,
> Sekhar
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> Behalf
> > Of Christopher Stillson
> > Sent: Tuesday, February 05, 2008 5:43 AM
> > To: [email protected]
> > Subject: hotplug subsytem, dm355, and gadget driver
> >
> > I'm trying to determine when the USB cable is inserted, which would
> > seem to be from the hotplug subsystem, but this doesn't work for me.
> > The hotplug system (which works for the sd card) doesn't seem to
> > trigger from USB.
> >
> > I have a system the successfully runs g_file_storage. I'm pretty sure
> > I have everything set up normally.
> >
> > Should the hotplug system work this way? If not, are there any
> > alternatives?
> >
> > Chris
> > _______________________________________________
> > Davinci-linux-open-source mailing list
> > [email protected]
> > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>



-- 
Chris
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to