kernel_optimize_test/drivers/input/tablet
Marcus Folkesson 553d16af23 Input: pegasus_notetaker - 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 (pegasus->dev->users && usb_submit_urb(pegasus->irq, GFP_NOIO) < 0)
		retval = -EIO;

The same URB will then be fail when resubmitted in pegasus_open().

Introduce pegasus->is_open to keep track of the state instead.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2018-03-17 11:05:18 -07:00
..
acecad.c Input: inline macros for MODULE_LICENSE, etc 2018-01-17 09:52:22 -08:00
aiptek.c Input: inline macros for MODULE_LICENSE, etc 2018-01-17 09:52:22 -08:00
gtco.c Input: gtco - fix potential out-of-bound access 2017-10-27 15:14:41 -07:00
hanwang.c Input: inline macros for MODULE_LICENSE, etc 2018-01-17 09:52:22 -08:00
kbtab.c Input: inline macros for MODULE_LICENSE, etc 2018-01-17 09:52:22 -08:00
Kconfig Input: add Pegasus Notetaker tablet driver 2016-06-02 10:00:17 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pegasus_notetaker.c Input: pegasus_notetaker - do not rely on input_dev->users 2018-03-17 11:05:18 -07:00
wacom_serial4.c Input: wacom_serial4 - constify serio_device_id 2017-08-18 17:15:09 -07:00