mbox series

[0/1] Do Not Disturb broke GD D-pad

Message ID 20241011195808.2201-1-terry.tritton@linaro.org (mailing list archive)
Headers show
Series Do Not Disturb broke GD D-pad | expand

Message

Terry Tritton Oct. 11, 2024, 7:58 p.m. UTC
Hi, 
We noticed a breakage in the android test: CtsHardwareTestCases_cts_tests
android.hardware.input.cts.tests.GameviceGv186Test#testAllMotions

I bisected the issue to:
	commit 22d6d060ac77 ("input: Add support for "Do Not Disturb"")
The cause is pretty clear there are 2 separate checks for:
	if ((usage->hid & 0xf0) == 0x90)
so the second one which handles the d-pad is getting skipped.

I've combined them both in the following patch which works for me.

Thanks

Terry Tritton (1):
  input: fix generic desktop D-Pad controls

 drivers/hid/hid-input.c | 37 +++++++++++++++++--------------------
 include/linux/hid.h     |  1 +
 2 files changed, 18 insertions(+), 20 deletions(-)