Loading Documentation/thinkpad-acpi.txt +13 −0 Original line number Diff line number Diff line Loading @@ -699,3 +699,16 @@ for example: modprobe thinkpad_acpi hotkey=enable,0xffff video=auto_disable Enabling debugging output ------------------------- The module takes a debug paramater which can be used to selectively enable various classes of debugging output, for example: modprobe ibm_acpi debug=0xffff will enable all debugging output classes. It takes a bitmask, so to enable more than one output class, just add their values. There is also a kernel build option to enable more debugging information, which may be necessary to debug driver problems. drivers/misc/Kconfig +10 −0 Original line number Diff line number Diff line Loading @@ -137,6 +137,16 @@ config THINKPAD_ACPI If you have an IBM or Lenovo ThinkPad laptop, say Y or M here. config THINKPAD_ACPI_DEBUG bool "Verbose debug mode" depends on THINKPAD_ACPI default n ---help--- Enables extra debugging information, at the expense of a slightly increase in driver size. If you are not sure, say N here. config THINKPAD_ACPI_DOCK bool "Legacy Docking Station Support" depends on THINKPAD_ACPI Loading drivers/misc/thinkpad_acpi.c +3 −0 Original line number Diff line number Diff line Loading @@ -2684,6 +2684,9 @@ static int __init set_ibm_param(const char *val, struct kernel_param *kp) static int experimental; module_param(experimental, int, 0); static u32 dbg_level; module_param_named(debug, dbg_level, uint, 0); #define IBM_PARAM(feature) \ module_param_call(feature, set_ibm_param, NULL, NULL, 0) Loading drivers/misc/thinkpad_acpi.h +13 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,18 @@ #define enabled(status,bit) ((status) & (1 << (bit)) ? "enabled" : "disabled") #define strlencmp(a,b) (strncmp((a), (b), strlen(b))) /* Debugging */ #define TPACPI_DBG_ALL 0xffff #define dbg_printk(a_dbg_level, format, arg...) \ do { if (dbg_level & a_dbg_level) \ printk(IBM_DEBUG "%s: " format, __func__ , ## arg); } while (0) #ifdef CONFIG_THINKPAD_ACPI_DEBUG #define vdbg_printk(a_dbg_level, format, arg...) \ dbg_printk(a_dbg_level, format, ## arg) #else #define vdbg_printk(a_dbg_level, format, arg...) #endif /* ACPI HIDs */ #define IBM_HKEY_HID "IBM0068" #define IBM_PCI_HID "PNP0A03" Loading Loading @@ -112,6 +124,7 @@ static char *next_cmd(char **cmds); /* Module */ static int experimental; static u32 dbg_level; static char *ibm_thinkpad_ec_found; static char* check_dmi_for_ec(void); Loading Loading
Documentation/thinkpad-acpi.txt +13 −0 Original line number Diff line number Diff line Loading @@ -699,3 +699,16 @@ for example: modprobe thinkpad_acpi hotkey=enable,0xffff video=auto_disable Enabling debugging output ------------------------- The module takes a debug paramater which can be used to selectively enable various classes of debugging output, for example: modprobe ibm_acpi debug=0xffff will enable all debugging output classes. It takes a bitmask, so to enable more than one output class, just add their values. There is also a kernel build option to enable more debugging information, which may be necessary to debug driver problems.
drivers/misc/Kconfig +10 −0 Original line number Diff line number Diff line Loading @@ -137,6 +137,16 @@ config THINKPAD_ACPI If you have an IBM or Lenovo ThinkPad laptop, say Y or M here. config THINKPAD_ACPI_DEBUG bool "Verbose debug mode" depends on THINKPAD_ACPI default n ---help--- Enables extra debugging information, at the expense of a slightly increase in driver size. If you are not sure, say N here. config THINKPAD_ACPI_DOCK bool "Legacy Docking Station Support" depends on THINKPAD_ACPI Loading
drivers/misc/thinkpad_acpi.c +3 −0 Original line number Diff line number Diff line Loading @@ -2684,6 +2684,9 @@ static int __init set_ibm_param(const char *val, struct kernel_param *kp) static int experimental; module_param(experimental, int, 0); static u32 dbg_level; module_param_named(debug, dbg_level, uint, 0); #define IBM_PARAM(feature) \ module_param_call(feature, set_ibm_param, NULL, NULL, 0) Loading
drivers/misc/thinkpad_acpi.h +13 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,18 @@ #define enabled(status,bit) ((status) & (1 << (bit)) ? "enabled" : "disabled") #define strlencmp(a,b) (strncmp((a), (b), strlen(b))) /* Debugging */ #define TPACPI_DBG_ALL 0xffff #define dbg_printk(a_dbg_level, format, arg...) \ do { if (dbg_level & a_dbg_level) \ printk(IBM_DEBUG "%s: " format, __func__ , ## arg); } while (0) #ifdef CONFIG_THINKPAD_ACPI_DEBUG #define vdbg_printk(a_dbg_level, format, arg...) \ dbg_printk(a_dbg_level, format, ## arg) #else #define vdbg_printk(a_dbg_level, format, arg...) #endif /* ACPI HIDs */ #define IBM_HKEY_HID "IBM0068" #define IBM_PCI_HID "PNP0A03" Loading Loading @@ -112,6 +124,7 @@ static char *next_cmd(char **cmds); /* Module */ static int experimental; static u32 dbg_level; static char *ibm_thinkpad_ec_found; static char* check_dmi_for_ec(void); Loading