aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax/i2400m/usb.c
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky@linux.intel.com>2009-09-02 18:36:05 -0400
committerInaky Perez-Gonzalez <inaky@linux.intel.com>2009-10-19 02:55:50 -0400
commit4c2b1a11646bf74e2926ce8b13a21884adc1e05c (patch)
tree59cd5b59b21969264c6833b567b828484a6d76ed /drivers/net/wimax/i2400m/usb.c
parent4dc1bf074e4db5aa281a7b82ceebb24df98922d2 (diff)
wimax: allow specifying debug levels as command line option
Add "debug" module options to all the wimax modules (including drivers) so that the debug levels can be set upon kernel boot or module load time. This is needed as currently there was a limitation where the debug levels could only be set when a device was succesfully enumerated. This made it difficult to debug issues that made a device not probe properly. Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Diffstat (limited to 'drivers/net/wimax/i2400m/usb.c')
-rw-r--r--drivers/net/wimax/i2400m/usb.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wimax/i2400m/usb.c b/drivers/net/wimax/i2400m/usb.c
index a5879e21bbf3..063422290a43 100644
--- a/drivers/net/wimax/i2400m/usb.c
+++ b/drivers/net/wimax/i2400m/usb.c
@@ -71,6 +71,13 @@
71#define D_SUBMODULE usb 71#define D_SUBMODULE usb
72#include "usb-debug-levels.h" 72#include "usb-debug-levels.h"
73 73
74static char i2400mu_debug_params[128];
75module_param_string(debug, i2400mu_debug_params, sizeof(i2400mu_debug_params),
76 0644);
77MODULE_PARM_DESC(debug,
78 "String of space-separated NAME:VALUE pairs, where NAMEs "
79 "are the different debug submodules and VALUE are the "
80 "initial debug value to set.");
74 81
75/* Our firmware file name */ 82/* Our firmware file name */
76static const char *i2400mu_bus_fw_names[] = { 83static const char *i2400mu_bus_fw_names[] = {
@@ -633,6 +640,8 @@ struct usb_driver i2400mu_driver = {
633static 640static
634int __init i2400mu_driver_init(void) 641int __init i2400mu_driver_init(void)
635{ 642{
643 d_parse_params(D_LEVEL, D_LEVEL_SIZE, i2400mu_debug_params,
644 "i2400m_usb.debug");
636 return usb_register(&i2400mu_driver); 645 return usb_register(&i2400mu_driver);
637} 646}
638module_init(i2400mu_driver_init); 647module_init(i2400mu_driver_init);