diff options
| author | Marcus Folkesson <[email protected]> | 2018-03-17 17:54:13 +0000 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2018-03-26 22:22:16 +0000 |
| commit | 85f46fbf5e242ef923fd313722e65cb6d2170149 (patch) | |
| tree | a20e6021842e99f6a828a3cb3a4529e36cf2f257 /drivers/fpga/fpga-bridge.c | |
| parent | Input: usbtouchscreen - fix deadlock in autosuspend (diff) | |
| download | kernel-85f46fbf5e242ef923fd313722e65cb6d2170149.tar.gz kernel-85f46fbf5e242ef923fd313722e65cb6d2170149.zip | |
Input: usbtouchscreen - do not rely on input_dev->users
If the device is unused and suspended, a call to open will cause the
device to autoresume through the call to usb_autopm_get_interface().
input_dev->users is already incremented by the input subsystem,
therefore this expression will always be evaluated to true:
if (input->users || usbtouch->type->irq_always)
result = usb_submit_urb(usbtouch->irq, GFP_NOIO);
The same URB will then be fail when resubmitted in usbtouch_open().
Introduce usbtouch->is_open to keep track of the state instead.
Signed-off-by: Marcus Folkesson <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
