]> git.baikalelectronics.ru Git - kernel.git/commit
usb: Remove broken optimisation in OHCI IRQ handler
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 6 Dec 2007 21:28:25 +0000 (13:28 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 17 Dec 2007 18:47:15 +0000 (10:47 -0800)
commit039fe37214eef6d10b37805301b381b275c7c18e
tree95571e1e6aa150aa4f7792118532f5ad89edd03e
parent2cd494cf3606581b6cb1417b965e8e6a3e121957
usb: Remove broken optimisation in OHCI IRQ handler

The OHCI IRQ handler has an optimisation that avoids reading some
chip registers when the controller reports that the interrupt was
triggered *only* because completed requests were written into the
controller's "done list" and handed to the host.

This mechanism can't be used on some controllers.  Among others, it
fails for the SA1111 and the AMCC 440EP PowerPC processor.

This patch removes the optimisation and makes the code clearer.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-hcd.c