Skip to content

Commit c07a025

Browse files
jwrdegoedeJiri Kosina
authored andcommitted
HID: asus: Ignore Asus vendor-page usage-code 0xff events
At least on a T100HA an Asus vendor-page usage-code 0xff event is send on every suspend and again on resume, resulting in the following warning: asus 0003:0B05:1807.0002: Unmapped Asus vendor usagepage code 0xff being logged twice on every suspend/resume. This commit silences the "Unmapped Asus vendor usagepage code ..." warning for usage-code 0xff to avoid these warnings being logged. Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 8f18eca commit c07a025

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/hid/hid-asus.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ static int asus_event(struct hid_device *hdev, struct hid_field *field,
261261
struct hid_usage *usage, __s32 value)
262262
{
263263
if ((usage->hid & HID_USAGE_PAGE) == 0xff310000 &&
264-
(usage->hid & HID_USAGE) != 0x00 && !usage->type) {
264+
(usage->hid & HID_USAGE) != 0x00 &&
265+
(usage->hid & HID_USAGE) != 0xff && !usage->type) {
265266
hid_warn(hdev, "Unmapped Asus vendor usagepage code 0x%02x\n",
266267
usage->hid & HID_USAGE);
267268
}

0 commit comments

Comments
 (0)