Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

HID: nintendo: Wait longer for initial probe

Some third-party controllers, such as the PB Tails CHOC, won't always
respond quickly on startup. Since this packet is needed for probe, and only
once during probe, let's just wait an extra second, which makes connecting
consistent.

Signed-off-by: Vicki Pfau <vi@endrift.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>

authored by

Vicki Pfau and committed by
Jiri Kosina
b73bc6a5 1d646242

+1 -1
+1 -1
drivers/hid/hid-nintendo.c
··· 2420 2420 struct joycon_input_report *report; 2421 2421 2422 2422 req.subcmd_id = JC_SUBCMD_REQ_DEV_INFO; 2423 - ret = joycon_send_subcmd(ctlr, &req, 0, HZ); 2423 + ret = joycon_send_subcmd(ctlr, &req, 0, 2 * HZ); 2424 2424 if (ret) { 2425 2425 hid_err(ctlr->hdev, "Failed to get joycon info; ret=%d\n", ret); 2426 2426 return ret;