[PATCH] USB: handle NAK packets in input devices.

From: Greg KH
Date: Mon Oct 18 2004 - 13:50:52 EST


Andrew requested this fix go in before 2.6.9 was out, to keep people's
syslog quiet for a lot of different USB input devices.

Fixes bug bugzilla.kernel.org bug #3564

Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>

diff -Nru a/drivers/usb/input/hid-core.c b/drivers/usb/input/hid-core.c
--- a/drivers/usb/input/hid-core.c 2004-10-15 16:40:01 -07:00
+++ b/drivers/usb/input/hid-core.c 2004-10-15 16:40:01 -07:00
@@ -926,6 +926,8 @@
case -ENOENT:
case -ESHUTDOWN:
return;
+ case -ETIMEDOUT: /* NAK */
+ break;
default: /* error */
warn("input irq status %d received", urb->status);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/