]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] USB: handle NAK packets in input devices.
authorGreg Kroah-Hartman <greg@kroah.com>
Mon, 18 Oct 2004 04:46:50 +0000 (21:46 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 18 Oct 2004 04:46:50 +0000 (21:46 -0700)
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@kroah.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/usb/input/hid-core.c

index 5c415425a18c2eabc07b9aecf5f55906197141e9..35baacd7706dd24a6fa1608ef6e15ba912365e03 100644 (file)
@@ -926,6 +926,8 @@ static void hid_irq_in(struct urb *urb, struct pt_regs *regs)
                case -ENOENT:
                case -ESHUTDOWN:
                        return;
+               case -ETIMEDOUT:        /* NAK */
+                       break;
                default:                /* error */
                        warn("input irq status %d received", urb->status);
        }