usbcore: don't log on consecutive debounce failures of the same port
authorOliver Neukum <oneukum@suse.de>
Mon, 14 Jul 2014 13:39:49 +0000 (15:39 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 13 Sep 2014 22:41:38 +0000 (23:41 +0100)
commit9b627762dee539bbd63b6d1be8f0242741325a27
treecfb3ba2ef455e6003b0817c31f798e38373bc626
parent784e6a38c81153132f275cd0b2808f48a6af4603
usbcore: don't log on consecutive debounce failures of the same port

commit 5ee0f803cc3a0738a63288e4a2f453c85889fbda upstream.

Some laptops have an internal port for a BT device which picks
up noise when the kill switch is used, but not enough to trigger
printk_rlimit(). So we shouldn't log consecutive faults of this kind.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[bwh: Backported to 3.2:
 - Adjust context
 - Error message already includes the port number]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/core/hub.c