USB: EHCI: don't turn on PORT_SUSPEND during port resume
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 18 Mar 2013 16:05:42 +0000 (12:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2013 23:05:58 +0000 (16:05 -0700)
commit24b90814fb133bb7971aef8ea5e642d9f9bc4b0b
tree5f557865c88022d9d13718165ba9d44435ef4369
parent60fd4aa742a0c4f01dafeb0d125fed54e91e3657
USB: EHCI: don't turn on PORT_SUSPEND during port resume

This patch (as1637) cleans up the way ehci-hcd handles end-of-resume
port signalling.  When the PORT_RESUME bit in the port's status and
control register is cleared, we shouldn't be setting the PORT_SUSPEND
bit at the same time.  Not doing this doesn't seem to have hurt so
far, but we might as well do the right thing.

Also, the patch replaces an estimated value for what the port status
should be following a resume with the actual register value.

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