]> git.baikalelectronics.ru Git - kernel.git/commit
Input: xpad - fix wireless 360 controller breaking after suspend
authorCameron Gutman <aicommander@gmail.com>
Thu, 18 Aug 2022 15:44:09 +0000 (17:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Oct 2022 05:54:41 +0000 (07:54 +0200)
commit58cac59f16198b2c74b261c476504534389a8ece
tree88b86d6a763be70d783e15463d33fbb73b86148f
parente1ade3b6e7462df6794f393aebcfb3d70333918a
Input: xpad - fix wireless 360 controller breaking after suspend

commit 4b00967ba0af4bef94cd092b1958b301862ec292 upstream.

Suspending and resuming the system can sometimes cause the out
URB to get hung after a reset_resume. This causes LED setting
and force feedback to break on resume. To avoid this, just drop
the reset_resume callback so the USB core rebinds xpad to the
wireless pads on resume if a reset happened.

A nice side effect of this change is the LED ring on wireless
controllers is now set correctly on system resume.

Cc: stable@vger.kernel.org
Fixes: 827282a3de2a ("Input: xpad - workaround dead irq_out after suspend/ resume")
Signed-off-by: Cameron Gutman <aicommander@gmail.com>
Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com>
Link: https://lore.kernel.org/r/20220818154411.510308-3-rojtberg@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/joystick/xpad.c