]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f6934d5a348e30c8f17bf95fd8cee76ac3c9091
tree5f557865c88022d9d13718165ba9d44435ef4369
parent63d3fa2cc13f04102890974468f263bc408b5ea8
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