]> git.kernelconcepts.de Git - karo-tx-linux.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 <jikos@kernel.org>
Mon, 10 Aug 2015 08:47:10 +0000 (10:47 +0200)
commit64d0ed94f5dfde5efac15941128f60edf7f15c17
tree37748961c94abf31da1f6e6d0ce7bf681afc7bd7
parent3f14a63a544374225c17221a5058748360428dc3
HID: wacom: Do not repeatedly attempt to set device mode on error

As an extension of aef3156d7, 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