[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1636013269-3433050-1-git-send-email-jiasheng@iscas.ac.cn>
Date: Thu, 4 Nov 2021 08:07:49 +0000
From: Jiasheng Jiang <jiasheng@...as.ac.cn>
To: jikos@...nel.org, benjamin.tissoires@...hat.com
Cc: linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
Jiasheng Jiang <jiasheng@...as.ac.cn>
Subject: [PATCH] HID: ite: Add parse before start
It might be better to add hid_parse() before
wacom_parse_and_register() to ask for the report descriptor.
Fixes: 3c785a0 ("HID: ite: Replace ABS_MISC 120/121 events with touchpad on/off keypresses")
Signed-off-by: Jiasheng Jiang <jiasheng@...as.ac.cn>
---
drivers/hid/hid-ite.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/hid/hid-ite.c b/drivers/hid/hid-ite.c
index 14fc068..3c56f75 100644
--- a/drivers/hid/hid-ite.c
+++ b/drivers/hid/hid-ite.c
@@ -100,6 +100,10 @@ static int ite_probe(struct hid_device *hdev, const struct hid_device_id *id)
if (ret)
return ret;
+ ret = hid_parse(hdev);
+ if (ret)
+ return ret;
+
return hid_hw_start(hdev, HID_CONNECT_DEFAULT);
}
--
2.7.4
Powered by blists - more mailing lists