From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Fri, 02 May 2003 02:40:33 +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 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? > 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. Are you using the Lineo USB gadget code, or some other USB code? 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