]> 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 <jikos@kernel.org>
Mon, 10 Aug 2015 08:47:10 +0000 (10:47 +0200)
commitd833856eeba38cb179601385ebe218d2e4e46638
tree37748961c94abf31da1f6e6d0ce7bf681afc7bd7
parentf017b3be80a227144bea18361fb844adcf1ad845
HID: wacom: Do not repeatedly attempt to set device mode on error

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