]> git.baikalelectronics.ru Git - kernel.git/commit
USB: EHCI: improve use of per-port status-change bits
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 18 Mar 2013 16:05:08 +0000 (12:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2013 23:05:58 +0000 (16:05 -0700)
commitc4851ba91125a25416df9cc5acf711dfb5969a8c
tree122109c425f0e8b18b32c289711b450091f7c2d4
parent010adf782f7190b7c5d6e387933a39a0efe77cd2
USB: EHCI: improve use of per-port status-change bits

This patch (as1634) simplifies some of the code associated with the
per-port change bits added in EHCI-1.1, and in particular it fixes a
bug in the logic of ehci_hub_status_data().  Even if the change bit
doesn't indicate anything happened on a particular port, we still have
to notify the core about changes to the suspend or reset status.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hub.c