USB: ratelimit debounce error messages

flaky hardware can cause a lot of debounce failed messages. To limit
the performance impact, a ratelimit should be used.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by Oliver Neukum and committed by Greg Kroah-Hartman 7bc4b81d d2487cb4

+1 -1
+1 -1
drivers/usb/core/hub.c
··· 2443 2443 2444 2444 if (portchange & USB_PORT_STAT_C_CONNECTION) { 2445 2445 status = hub_port_debounce(hub, port1); 2446 - if (status < 0) { 2446 + if (status < 0 && printk_ratelimit()) { 2447 2447 dev_err (hub_dev, 2448 2448 "connect-debounce failed, port %d disabled\n", 2449 2449 port1);