]> git.baikalelectronics.ru Git - kernel.git/commit
EHCI: don't try to clear the IAAD bit
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 17 Apr 2012 19:23:25 +0000 (15:23 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Apr 2012 20:55:40 +0000 (13:55 -0700)
commit00be557989616095a536cc054013c1bac036f02a
tree4bd441f074ec30afb83e9ad7aee03df58d4a8cd6
parent7003305101e444e647a11ed614ec5a46cb48c2c1
EHCI: don't try to clear the IAAD bit

This patch (as1541) corrects a small mistake in ehci-hcd.  The IAAD
(Interrupt on Async Advance Doorbell) bit in the USBCMD register is
designed, as its name says, to act as a "doorbell".  That is, the
driver activates the bit by setting it to 1, and the hardware
deactivates it later by setting it back to 0.  The driver cannot clear
the bit by writing a 0 to it; such writes are simply ignored.

Therefore there is no reason for ehci-hcd to try to clear the bit.
The patch removes the two instances where such attempts occur.

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