Skip to content

Commit b73bc6a

Browse files
endriftJiri Kosina
authored andcommitted
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>
1 parent 1d64624 commit b73bc6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-nintendo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,7 @@ static int joycon_read_info(struct joycon_ctlr *ctlr)
24202420
struct joycon_input_report *report;
24212421

24222422
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);
24242424
if (ret) {
24252425
hid_err(ctlr->hdev, "Failed to get joycon info; ret=%d\n", ret);
24262426
return ret;

0 commit comments

Comments
 (0)