linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: USB Hub Port Power Control and Hotplug Events
Date: Fri, 11 Aug 2006 08:37:41 +0000	[thread overview]
Message-ID: <20060811083741.GA9989@kroah.com> (raw)
In-Reply-To: <9b1737410608101621g61587b05s113501b16d38b7b6@mail.gmail.com>

On Fri, Aug 11, 2006 at 09:39:47AM +0200, Guennadi Liakhovetski wrote:
> On Thu, 10 Aug 2006, Andy Dalton wrote:
> 
> > While experimenting, I noticed something a bit strange.  If I power
> > down a port on the USB hub, then later power it back on,  I do *not*
> > get a hotplug removal event on power off, but I *do* get an insertion
> > event on power on.
> 
> It has been discussed on the USB-devel list. The thing is - the hub 
> doesn't report a "port status change" on "port power off". It's on power 
> on it first reports a "disconnect" and then immediately a "new device". 
> And the system cannot really simulate this event for you because the "port 
> power off" command can come from various places - kernel drivers, user 
> space. So, your only option seems to be to use the fact that it's you who 
> issues the command, so, you know that the device is gone. Just use this 
> knowledge.
> 
> Not sure, but I don't think you can tell the kernel that the device is 
> gone...

No, the USB stack does not allow you to do this at this point in time,
sorry.

You can unbind a device from a driver though, that would prevent it from
being used by any userspace programs.

thanks,

greg k-h

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
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:[~2006-08-11  8:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-10 23:21 USB Hub Port Power Control and Hotplug Events Andy Dalton
2006-08-11  7:39 ` Guennadi Liakhovetski
2006-08-11  8:37 ` Greg KH [this message]

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=20060811083741.GA9989@kroah.com \
    --to=greg@kroah.com \
    --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).