]> git.baikalelectronics.ru Git - kernel.git/commit
USB: xhci: Refactor code to clear port change bits.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 9 Dec 2009 23:59:08 +0000 (15:59 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:53:11 +0000 (14:53 -0800)
commita9b8ee33e5bc6a4ffe9f5097036757fe374ab9d6
tree43638f312ee6f5de4157bb397a503bdf5952f35a
parentf2ae5ec71eddf4dc189175b02bd9fac8d39a45db
USB: xhci: Refactor code to clear port change bits.

Refactor the code to clear the port change bits in the port status
register.  All port status change bits are write one to clear.

Remove a redundant port status read that was supposed to unblock any
posted writes.  We read the port after the write to get the updated status
for debugging, so the port read after that is unnecessary.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-hub.c