diff options
| author | Oliver Neukum <oneukum@suse.com> | 2026-06-05 11:00:58 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-08 17:19:17 +0200 |
| commit | 6df47500b557e01737eef6f6b07b12f97a35d841 (patch) | |
| tree | 06b5a3308113b2218c8f4ec1499dc1f0bba4c228 /drivers/usb | |
| parent | 0bfeec21984fedd32987f4e4c0cde34b445af404 (diff) | |
| download | linux-next-6df47500b557e01737eef6f6b07b12f97a35d841.tar.gz linux-next-6df47500b557e01737eef6f6b07b12f97a35d841.zip | |
USB: core: ratelimit cabling message
If a cable is bad, it stays bad. There is no need to flood the log with
messages about it. So go for a ratelimited version.
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://patch.msgid.link/20260605090110.1514785-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
| -rw-r--r-- | drivers/usb/core/hub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 24960ba9caa9..5262e11c12cd 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -3148,7 +3148,7 @@ static int hub_port_reset(struct usb_hub *hub, int port1, delay = HUB_LONG_RESET_TIME; } - dev_err(&port_dev->dev, "Cannot enable. Maybe the USB cable is bad?\n"); + dev_err_ratelimited(&port_dev->dev, "Cannot enable. Maybe the USB cable is bad?\n"); done: if (status == 0) { |
