thermal: int3400_thermal: Ignore charger events
cover thermal: int3400_thermal: Ignore charger events
Hi All,
This patch seems to have fallen through the cracks, hence this resend.
Regards,
Hans
PATCH RESEND 1/1 thermal: int3400_thermal: Ignore charger events
Ignore events of type 0x86 which are fired of when plugging in / out the charger, judging from both observed behavior and the AML code on an Asus T100HA.
This silences these kernel errors on the T100HA:
[ 86.599918] acpi INT3400:00: Unsupported event [0x86] [ 120.133024] acpi INT3400:00: Unsupported event [0x86]
--- drivers/thermal/int340x_thermal/int3400_thermal.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/thermal/int340x_thermal/int3400_thermal.c +3 -0
@@ -17,6 +17,7 @@#include "acpi_thermal_rel.h" #define INT3400_THERMAL_TABLE_CHANGED 0x83 +#define INT3400_CHARGER_EVENT 0x86enum int3400_thermal_uuid {INT3400_THERMAL_PASSIVE_1 ,
@@ -210,6 +211,8 @@ static void int3400_notify(acpi_handle handle,kobject_uevent_env (&priv->thermal->device.kobj,KOBJ_CHANGE , thermal_prop);break ; +case INT3400_CHARGER_EVENT : +break ;default :/* Ignore unknown notification codes sent to INT3400 device */ break ;
Signature · 1 line
2.14.3
Zhang Rui
reviewerQuoted 5 lines · Hans de Goede
Hi All,
This patch seems to have fallen through the cracks, hence this resend.
I think the problem can be covered by this commit, right?
commit 261ac1d2d9ef9a29c57f8aff341ae3dc323a707c Author: Brian Bian <[email protected]>
AuthorDate: Tue Nov 14 09:36:36 2017 -0800 Commit: Zhang Rui <[email protected]>
CommitDate: Wed Dec 27 10:14:58 2017 +0800
thermal: int3400_thermal: Ignore Unknown Notification Codes
Some BIOS implementations route ACPI codes other than 0x83 to INT3400
device. Ignore these ACPI notification codes because the INT3400 driver
does not handle them.
thanks,
rui