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)
commit565227c08226e458da191518251dbff6831624c2
tree95571e1e6aa150aa4f7792118532f5ad89edd03e
parent08cbc706acd2dd601b0663e28fa97ffb0564e105
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