]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit4dd405a4b0969bfec4dc9959050b46d818b6549b
tree122109c425f0e8b18b32c289711b450091f7c2d4
parent6d5df8976266d8e40603601f7695537f9f3dc9e2
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