]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 23 Nov 2022 14:12:13 +0000 (15:12 +0100)
commita6ed1a8897bc750d585fcde33e854f8fb3deb078
tree65b471cf41e86df078f43e60e04c914350cd7324
parent1c58cd829fcbc83121c88bbf217a71ab05f9fcce
Input: xpad - fix wireless 360 controller breaking after suspend

BugLink: https://bugs.launchpad.net/bugs/1995638
commit a17b9841152e7f4621619902b347e2cc39c32996 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: 4220f7db1e42 ("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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/input/joystick/xpad.c