]> git.baikalelectronics.ru Git - kernel.git/commit
wimax/i2400m: allow kernel commands to device to be logged too
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Mon, 13 Apr 2009 17:26:34 +0000 (10:26 -0700)
committerInaky Perez-Gonzalez <inaky@linux.intel.com>
Fri, 29 May 2009 01:01:42 +0000 (18:01 -0700)
commitccdc93b764f93b47a4a3a572ccc7878127e39fa0
tree4ef63bbe6701cbf24beed89ec4be1c1ed2768888
parent1ef3d35d3570082a7c55f96c5b6c70eb64e6d3e8
wimax/i2400m: allow kernel commands to device to be logged too

By running 'echo 1 > /sys/kernel/debug/wimax:wmxX/i2400m/trace_msg_from_user',
the driver will echo to user space all the commands being sent to the
device from user space, along with the responses.

However, this only helps with the commands being sent from user space;
with this patch, the trace hook is moved to i2400m_msg_to_dev(), which
is the single access point for running commands to the device (both by
user space and the kernel driver). This allows better debugging by
having a complete stream of commands/acks and reports.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
drivers/net/wimax/i2400m/control.c
drivers/net/wimax/i2400m/driver.c