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)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 4 Jan 2016 22:35:06 +0000 (14:35 -0800)
commit4220f7db1e424f2a086ad41217b5770cc9f003a9
tree73366f1fda60c39819b5e8047ad6c51017999c47
parent2a6d7527b35cf987260800807e328d167aef22ac
Input: xpad - workaround dead irq_out after suspend/ resume

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>
drivers/input/joystick/xpad.c