linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "???" <calin@iii.org.tw>
To: linux-hotplug@vger.kernel.org
Subject: Re: Hotplug in device with Linux
Date: Fri, 02 May 2003 03:10:12 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-105184547200587@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-105184058830028@msgid-missing>


----- Original Message -----
From: "Greg KH" <greg@kroah.com>
To: "?L???w" <calin@iii.org.tw>
Cc: <linux-hotplug-devel@lists.sourceforge.net>
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

  parent reply	other threads:[~2003-05-02  3:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-02  1:52 Hotplug in device with Linux 林建安
2003-05-02  2:40 ` Greg KH
2003-05-02  3:10 ` ??? [this message]
2003-05-02  3:48 ` Greg KH
2003-05-02  5:09 ` David Brownell
2003-05-02  6:11 ` Greg KH
2003-05-02  6:56 ` David Brownell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-hotplug-105184547200587@msgid-missing \
    --to=calin@iii.org.tw \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).