Skip to content

Commit 9ab762a

Browse files
khfengjwrdegoede
authored andcommitted
platform/x86: hp-wmi: Ignore Sanitization Mode event
After system resume the hp-wmi driver may complain: [ 702.620180] hp_wmi: Unknown event_id - 23 - 0x0 According to HP it means 'Sanitization Mode' and it's harmless to just ignore the event. Cc: Jorge Lopez <[email protected]> Signed-off-by: Kai-Heng Feng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent bce6243 commit 9ab762a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/platform/x86/hp-wmi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ enum hp_wmi_event_ids {
8989
HPWMI_BACKLIT_KB_BRIGHTNESS = 0x0D,
9090
HPWMI_PEAKSHIFT_PERIOD = 0x0F,
9191
HPWMI_BATTERY_CHARGE_PERIOD = 0x10,
92+
HPWMI_SANITIZATION_MODE = 0x17,
9293
};
9394

9495
/*
@@ -853,6 +854,8 @@ static void hp_wmi_notify(u32 value, void *context)
853854
break;
854855
case HPWMI_BATTERY_CHARGE_PERIOD:
855856
break;
857+
case HPWMI_SANITIZATION_MODE:
858+
break;
856859
default:
857860
pr_info("Unknown event_id - %d - 0x%x\n", event_id, event_data);
858861
break;

0 commit comments

Comments
 (0)