mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
HID: nintendo: Wait longer for initial probe
[ Upstream commit b73bc6a51f ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
251d0e6256
commit
b219d400f4
@@ -2424,7 +2424,7 @@ static int joycon_read_info(struct joycon_ctlr *ctlr)
|
|||||||
struct joycon_input_report *report;
|
struct joycon_input_report *report;
|
||||||
|
|
||||||
req.subcmd_id = JC_SUBCMD_REQ_DEV_INFO;
|
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) {
|
if (ret) {
|
||||||
hid_err(ctlr->hdev, "Failed to get joycon info; ret=%d\n", ret);
|
hid_err(ctlr->hdev, "Failed to get joycon info; ret=%d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user