From mboxrd@z Thu Jan 1 00:00:00 1970 From: "???" Date: Fri, 02 May 2003 03:10:12 +0000 Subject: Re: Hotplug in device with Linux Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org ----- Original Message ----- From: "Greg KH" To: "?L???w" Cc: Sent: Friday, May 02, 2003 10:40 AM Subject: Re: Hotplug in device with Linux > On Fri, May 02, 2003 at 09:52:47AM +0800, ?L???w wrote: > > > > Hi there, > > I am working on sharp PDA that has Linux in it. > > I'd like it to trigger some event when USB line has been plugged into host, > > so that I can use it to call up a corresponding AP to offer service. > > So your Linux PDA shows up as a USB device when plugged into a USB host? > Or is it the other way around? I want to get that event in "Linux PDA", not in host... What I want to do is that both SyncML client and server can automatically be called up respectively in Linux device and in Linux host when USB line has connected device and host. It's not too hard to do that in Linux host by hotplug manners, but I donot know how to do that in Linux device. It seems that hotplug doesn't support this manners in device side. Does it? > > > Can hotplug trigger this kind of event in Linux device? > > Yes. If you are a USB host you should get that event today. If you are > a USB device (what Linux calls a USB gadget), you should generate that > event, but as there is no mainline code for USB gadget's right now, I do > not think that has been hooked up yet. Do you mean my USB driver in Linux device should invoke hotplug helper by myself? Is it too odd to invoke AP by USB driver itself in Linux device? > > Are you using the Lineo USB gadget code, or some other USB code? I am not sure. Sorry.. :-) > > thanks, > > greg k-h > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel