]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: fw-ohci: conditionally log busReset interrupts
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 7 Apr 2008 20:33:35 +0000 (22:33 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 18 Apr 2008 15:55:35 +0000 (17:55 +0200)
commit5a61884b67a47fe6125dde00171e7d3cf7283a90
tree118f54e70b99dd1315cce57796f7d0a7bbb9c3df
parent968e4ee9cf6494c06921836bac969111bfed1c28
firewire: fw-ohci: conditionally log busReset interrupts

Add a debug option to watch bus reset interrupt events.  Half of this
patch is taken from Jarod Wilson's first version of the JMicron fix.

BusReset interrupts are only generated if the respective module
parameter flag was set before the controller is being initialized.
Else we keep this event masked to reduce IRQ load in normal operation
and to avoid potential problems with buggy chips.

Note, this is unlike the other IRQ events whose logging can be enabled
any time after chip initialization.  This and the influence on what
interrupts the chip generates is why I added an extra flag for it.

Also, reorder the debug parameter flags according to their perceived
usefulness.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Jarod Wilson <jwilson@redhat.com>
drivers/firewire/fw-ohci.c