linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] HID: i2c-hid: re-power-on quirk for QTEC kbrd
@ 2024-09-25 10:01 Aleksandrs Vinarskis
  2024-09-25 10:01 ` [PATCH v1 1/2] HID: i2c-hid: introduce re-power-on quirk Aleksandrs Vinarskis
  2024-09-25 10:02 ` [PATCH v1 2/2] HID: i2c-hid: introduce qtec vendor, enable " Aleksandrs Vinarskis
  0 siblings, 2 replies; 6+ messages in thread
From: Aleksandrs Vinarskis @ 2024-09-25 10:01 UTC (permalink / raw)
  To: Jiri Kosina, linux-input, linux-kernel
  Cc: Benjamin Tissoires, Aleksandrs Vinarskis

Resolve keyboard not working out of the box for Dell XPS 9345 13"
codenamed 'tributo'. X1E80100-based laptop's initial support is currently
being upstreamed [1].

In present state, keyboard is succesfully initialized, however attempt to type
anything throws 'incomplete report' errors. When utilizing
I2C_HID_QUIRK_BAD_INPUT_SIZE quirk the error is gone, however raw data coming
from the keyboard is always the same, no matter the key pressed. Issue
'resolves' itself when suspending and resuming the device.

It appears that calling power on command one more time after device
initialization before finishing off the probing fixes this weird behavior, and
keyboard works right away.

Introduce a new quirk for such behaviour, and enable it for particular keyboard.
Vendor is shown as 'QTEC', however device id is reported as 0000. Given that
vendor was not present before, using HID_ANY_ID to match the device should be
okay in this case.

[1] https://lore.kernel.org/all/20240921163455.12577-1-alex.vinarskis@gmail.com/

Aleksandrs Vinarskis (2):
  HID: i2c-hid: introduce re-power-on quirk
  HID: i2c-hid: introduce qtec vendor, enable re-power-on quirk

 drivers/hid/hid-ids.h              |  2 ++
 drivers/hid/i2c-hid/i2c-hid-core.c | 12 +++++++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-10-21 12:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25 10:01 [PATCH v1 0/2] HID: i2c-hid: re-power-on quirk for QTEC kbrd Aleksandrs Vinarskis
2024-09-25 10:01 ` [PATCH v1 1/2] HID: i2c-hid: introduce re-power-on quirk Aleksandrs Vinarskis
2024-09-25 11:54   ` Benjamin Tissoires
2024-10-14  0:16     ` Aleksandrs Vinarskis
2024-10-21 12:07       ` Aleksandrs Vinarskis
2024-09-25 10:02 ` [PATCH v1 2/2] HID: i2c-hid: introduce qtec vendor, enable " Aleksandrs Vinarskis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).