]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Do not repeatedly attempt to set device mode on error
authorJason Gerecke <killertofu@gmail.com>
Wed, 5 Aug 2015 22:45:30 +0000 (15:45 -0700)
committerJiri Kosina <jkosina@suse.cz>
Mon, 10 Aug 2015 12:23:37 +0000 (14:23 +0200)
commit1352a8c5a950ca30d301bafe115b1461340774b4
tree679427967f86c66fbb0515284e942b3acb16af2e
parent0e022dcf15182fcb8d1f39b6f70cf412f41c42da
HID: wacom: Do not repeatedly attempt to set device mode on error

As an extension of daad8fcff, there is no sense in repeatedly calling the
'wacom_set_report' and 'wacom_get_report' functions if they return an
error. Getting an error from them implies that the device is out to lunch:
either a hard error code was returned or repeated attempts at recovering
from a "soft" error all failed. In either case, doing even more retries is
not likely to resolve whatever is wrong.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c