Input: xpad - workaround dead irq_out after suspend/ resume
authorPavel Rojtberg <rojtberg@gmail.com>
Wed, 9 Dec 2015 21:30:34 +0000 (13:30 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:48:01 +0000 (09:48 +0100)
commit0d5f5eafb5a8fa11cbda30004f1441cbf0348f18
tree0c32eabaf89b1ca7ba9369b47839d72b543cd953
parent162a94765b7f479a11f532691489dd6e3f4d7237
Input: xpad - workaround dead irq_out after suspend/ resume

[ Upstream commit 4220f7db1e424f2a086ad41217b5770cc9f003a9 ]

The irq_out urb is dead after suspend/ resume on my x360 wr pad. (also
reproduced by Zachary Lund [0]) Work around this by implementing
suspend, resume, and reset_resume callbacks and properly shutting down
URBs on suspend and restarting them on resume.

[0]: https://github.com/paroj/xpad/issues/6

Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/joystick/xpad.c