Commit fd75ba2b authored by Henrique de Moraes Holschuh's avatar Henrique de Moraes Holschuh Committed by Andy Shevchenko

platform/x86: thinkpad_acpi: silence false-positive-prone pr_warn

Do not consider unknown HKEY events in the 0x6000 range to be thermal
warnings.  Instead, handle them as a generic unknown HKEY event, which
are reported to the kernel log at priority "notice", and do not trigger
a thermal registers state dump to the log.
Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tested-by: default avatarJordan Glover <Golden_Miller83@protonmail.ch>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent edd1ed73
...@@ -4039,8 +4039,6 @@ static bool hotkey_notify_6xxx(const u32 hkey, ...@@ -4039,8 +4039,6 @@ static bool hotkey_notify_6xxx(const u32 hkey,
bool *send_acpi_ev, bool *send_acpi_ev,
bool *ignore_acpi_ev) bool *ignore_acpi_ev)
{ {
bool known = true;
/* 0x6000-0x6FFF: thermal alarms/notices and keyboard events */ /* 0x6000-0x6FFF: thermal alarms/notices and keyboard events */
*send_acpi_ev = true; *send_acpi_ev = true;
*ignore_acpi_ev = false; *ignore_acpi_ev = false;
...@@ -4107,13 +4105,12 @@ static bool hotkey_notify_6xxx(const u32 hkey, ...@@ -4107,13 +4105,12 @@ static bool hotkey_notify_6xxx(const u32 hkey,
return true; return true;
default: default:
pr_warn("unknown possible thermal alarm or keyboard event received\n"); /* report simply as unknown, no sensor dump */
known = false; return false;
} }
thermal_dump_all_sensors(); thermal_dump_all_sensors();
return true;
return known;
} }
static void hotkey_notify(struct ibm_struct *ibm, u32 event) static void hotkey_notify(struct ibm_struct *ibm, u32 event)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment