]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
usb: hub: Reduce warning to notice on power loss
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 22 Mar 2018 15:18:32 +0000 (16:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Mar 2018 13:11:54 +0000 (14:11 +0100)
Currently we warn the user when the root hub lost power after resume,
but the user cannot do anything about it so it should probably be a
notice.

This will reduce the noise in the console during suspend and resume,
which is already quite significant in many systems.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c

index aaeef03c0d8382e5f840bb73be4897872050aa9c..793eda1cfe49f104964d09c21b0ea7f729151c78 100644 (file)
@@ -3655,7 +3655,7 @@ static int hub_reset_resume(struct usb_interface *intf)
  */
 void usb_root_hub_lost_power(struct usb_device *rhdev)
 {
-       dev_warn(&rhdev->dev, "root hub lost power or was reset\n");
+       dev_notice(&rhdev->dev, "root hub lost power or was reset\n");
        rhdev->reset_resume = 1;
 }
 EXPORT_SYMBOL_GPL(usb_root_hub_lost_power);