aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorMarcus Folkesson <[email protected]>2018-03-17 17:54:13 +0000
committerDmitry Torokhov <[email protected]>2018-03-26 22:22:16 +0000
commit85f46fbf5e242ef923fd313722e65cb6d2170149 (patch)
treea20e6021842e99f6a828a3cb3a4529e36cf2f257 /drivers/fpga/fpga-bridge.c
parentInput: usbtouchscreen - fix deadlock in autosuspend (diff)
downloadkernel-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