[PATCH 0/3] USB: Report USB-2 root-hub wakeup events

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

 



Anshuman has requested, on behalf of Chrome OS, that all USB wakeup
events be reported to the PM core, using pm_wakeup_event().  Currently
such events are not reported if they originate from devices attached to
USB-2 root-hub ports.  This is because of the timing during system
resume; we make it go as fast as possible, deliberately starting a
host-initiated port resume before a root-hub port has had enough time
to go through a complete remote-wakeup cycle.

This patch fills the gap by making the hub driver query each root hub
during resume for ports which have started a remote-wakeup cycle but
not yet finished it.  The child devices attached to these ports are
then reported to the PM core as potential sources of the current
wakeup.

This requires adding a new HCD method, for getting a bitmap of 
resuming ports.  The patch series implements this new method only for 
the ehci-hcd and xhci-hcd drivers.  Other HCDs may care to implement it 
later on, or they may not -- the information isn't terribly critical.

Alan Stern

--
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