Re: Question about USB shutdown procedure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 23, 2010 at 12:27:41PM -0400, Alan Stern wrote:
> On Mon, 23 Aug 2010, Greg KH wrote:
> 
> > On Mon, Aug 23, 2010 at 08:52:36AM -0700, Sarah Sharp wrote:
> > > When the system is being shutdown, what USB core functions get invoked?
> > > I know that usb_hcd_pci_shutdown() will get called for the host
> > > controllers, but does anything get invoked for the USB devices?
> > 
> > It should, do you not see that happen?
> > 
> > > I'm specifically wondering what we do for external hubs with devices
> > > attached to them when the system is rebooted.  Does hub_disconnect() get
> > > called?
> > 
> > It should.
> 
> This depends on what the host controller's shutdown routine does.  If 
> it unregisters the root hub then disconnect processing will occur for 
> all the devices below the root hub.  However I don't know that any HCDs 
> do this currently.  They just disable the host controller and leave the 
> bus in an idle state.

Ah, I didn't realize this, thanks.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux