firewire: debug interrupt events
PATCH 1/1 firewire: debug interrupt events
This adds debug printks for asynchronous transmission and reception and for self ID reception. They can be enabled at module load time, and at runtime via /sys/module/firewire_ohci/parameters/debug.
Signed-off-by Jarod Wilson <[email protected]>
Also added: Logging of interrupt event codes and of cancelled AT packets.
The code now depends on a Kconfig variable. This makes it easier to build firewire-ohci without the feature or to make it an option in the future. The variable is currently hidden and always on.
This feature inflates firewire-ohci.ko by 7 kB = 27% on x86-64 and by 4 kB = 23% on i686.
Signed-off-by Stefan Richter <[email protected]>
--- drivers/firewire/Kconfig | 5 + drivers/firewire/fw-ohci.c | 182 +++++++++++++++++++++++++++++++++++++ 2 files changed, 187 insertions(+)
drivers/firewire/Kconfig +5 -0
@@ -54,6 +54,11 @@ config FIREWIRE_OHCI directive, use "install modulename /bin/true" for the modules to be blacklisted. +config FIREWIRE_OHCI_DEBUG + bool + depends on FIREWIRE_OHCI + default y + config FIREWIRE_SBP2 tristate "Support for storage devices (SBP-2 protocol driver)" depends on FIREWIRE && SCSI
drivers/firewire/fw-ohci.c +182 -0
224 lines not on this page · raw message
Signature · 3 lines
Stefan Richter -=====-==--- --== =-=-- http://arcgraph.de/sr/