From: Don Zickus Date: Mon, 10 Aug 2015 16:06:53 +0000 (-0400) Subject: HID: usbhid: Fix the check for HID_RESET_PENDING in hid_io_error X-Git-Tag: omap-for-v4.3/fixes-rc1~125^2~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3af4e5a95184d6d3c1c6a065f163faa174a96a1d;p=pandora-kernel.git HID: usbhid: Fix the check for HID_RESET_PENDING in hid_io_error It was reported that after 10-20 reboots, a usb keyboard plugged into a docking station would not work unless it was replugged in. Using usbmon, it turns out the interrupt URBs were streaming with callback errors of -71 for some reason. The hid-core.c::hid_io_error was supposed to retry and then reset, but the reset wasn't really happening. The check for HID_NO_BANDWIDTH was inverted. Fix was simple. Tested by reporter and locally by me by unplugging a keyboard halfway until I could recreate a stream of errors but no disconnect. Signed-off-by: Don Zickus Cc: stable@vger.kernel.org Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed