mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 01:23:56 +02:00
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>
This commit is contained in:
parent
1d64624243
commit
b73bc6a51f
|
|
@ -2420,7 +2420,7 @@ static int joycon_read_info(struct joycon_ctlr *ctlr)
|
|||
struct joycon_input_report *report;
|
||||
|
||||
req.subcmd_id = JC_SUBCMD_REQ_DEV_INFO;
|
||||
ret = joycon_send_subcmd(ctlr, &req, 0, HZ);
|
||||
ret = joycon_send_subcmd(ctlr, &req, 0, 2 * HZ);
|
||||
if (ret) {
|
||||
hid_err(ctlr->hdev, "Failed to get joycon info; ret=%d\n", ret);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user