mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-05 15:13:02 +02:00
46 lines
1.8 KiB
Diff
46 lines
1.8 KiB
Diff
From 248b4ac573a6a55f11ded4d32b12cd1ec0c8f566 Mon Sep 17 00:00:00 2001
|
|
From: Joachim Wiberg <troglobit@gmail.com>
|
|
Date: Mon, 29 Apr 2024 15:14:51 +0200
|
|
Subject: [PATCH 24/30] usb: core: adjust log level for unauthorized devices
|
|
|
|
The fact that a USB device currently is not authorized is not an error,
|
|
so let's adjust the log level so these messages slip below radar for the
|
|
commonly used 'quiet' log level.
|
|
|
|
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
|
|
---
|
|
drivers/usb/core/driver.c | 4 ++--
|
|
drivers/usb/core/generic.c | 2 +-
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c
|
|
index 0c3f12daac79..037f03aace9f 100644
|
|
--- a/drivers/usb/core/driver.c
|
|
+++ b/drivers/usb/core/driver.c
|
|
@@ -335,10 +335,10 @@ static int usb_probe_interface(struct device *dev)
|
|
return error;
|
|
|
|
if (udev->authorized == 0) {
|
|
- dev_err(&intf->dev, "Device is not authorized for usage\n");
|
|
+ dev_warn(&intf->dev, "Device is not authorized for usage\n");
|
|
return error;
|
|
} else if (intf->authorized == 0) {
|
|
- dev_err(&intf->dev, "Interface %d is not authorized for usage\n",
|
|
+ dev_warn(&intf->dev, "Interface %d is not authorized for usage\n",
|
|
intf->altsetting->desc.bInterfaceNumber);
|
|
return error;
|
|
}
|
|
diff --git a/drivers/usb/core/generic.c b/drivers/usb/core/generic.c
|
|
index b134bff5c3fe..60575a01a810 100644
|
|
--- a/drivers/usb/core/generic.c
|
|
+++ b/drivers/usb/core/generic.c
|
|
@@ -247,7 +247,7 @@ int usb_generic_driver_probe(struct usb_device *udev)
|
|
* with the driver core and lets interface drivers bind to them.
|
|
*/
|
|
if (udev->authorized == 0)
|
|
- dev_err(&udev->dev, "Device is not authorized for usage\n");
|
|
+ dev_warn(&udev->dev, "Device is not authorized for usage\n");
|
|
else {
|
|
c = usb_choose_configuration(udev);
|
|
if (c >= 0) {
|