]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: hid-oxp: Add Second Generation Gamepad Mode Switch
authorDerek J. Clark <derekjohn.clark@gmail.com>
Sun, 19 Apr 2026 04:26:22 +0000 (21:26 -0700)
committerJiri Kosina <jkosina@suse.com>
Tue, 12 May 2026 15:55:57 +0000 (17:55 +0200)
commit2f424f28fb39fa3afc1cd73d4191af0262016ea2
treeb1ffea47b26eb4c6f45fb3a43dffb734960b2440
parent252c4bf1d9316ee57f60cef93b9ce37da10307be
HID: hid-oxp: Add Second Generation Gamepad Mode Switch

Adds "gamepad_mode" attribute to second generation OneXPlayer
configuration HID devices. This attribute initiates a mode shift in the
device MCU that puts it into a state where all events are routed to an
hidraw interface instead of the xpad evdev interface. This allows for
debugging the hardware input mapping added in the next patch.

Reviewed-by: Zhouwang Huang <honjow311@gmail.com>
Tested-by: Zhouwang Huang <honjow311@gmail.com>
Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-oxp.c