]> err.no Git - linux-2.6/commit
USB: ohci-at91 refcount fix for irq wake enables
authorMarc Pignat <marc.pignat@hevs.ch>
Tue, 9 Jan 2007 22:00:11 +0000 (14:00 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Feb 2007 23:44:35 +0000 (15:44 -0800)
commit6dde896e4eac122f388263f0097b691acdc0396f
tree0ddf6a08407524e9b936405302c918572f9855df
parentf3f4906516a084bbd9aa3da7592e6b029fe78f5b
USB: ohci-at91 refcount fix for irq wake enables

The attached patch fixes the unbalanced calls to enable_irq_wake() and
disable_irq_wake() in the AT91 USB Host driver.

It should resolve these kernel messages:
  Unbalanced IRQ x wake disable
  BUG: warning at kernel/irq/manage.c:167/set_irq_wake()

(The original code was debugged before a bug in the genirq wakeup irq
logic was fixed by adding the IRQ wake enable/disable refcounting.
Not all code yet uses the bugfixed model.)

Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-at91.c