Skip to contentSkip to conversation

usb: dwc2: do no print error message with dwc2_warn() macro

PATCH Applied Enrico Jorns 2 participants 2 messages May 17, 2021 – May 18, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: dwc2: do no print error message with dwc2_warn() macro

dwc2_warn() is intended for printing 'warning' messages and should thus call dev_warn() instead of dev_err().

---
 drivers/usb/dwc2/core.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/dwc2/core.h +1 -1
index fa9d6ae954..c49672c85a 100644
@@ -500,7 +500,7 @@ struct dwc2 {
 #define gadget_to_dwc2(ptr) container_of(ptr, struct dwc2, gadget)
 
 #define dwc2_err(d, arg...) dev_err((d)->dev, ## arg)
-#define dwc2_warn(d, arg...) dev_err((d)->dev, ## arg)
+#define dwc2_warn(d, arg...) dev_warn((d)->dev, ## arg)
 #define dwc2_info(d, arg...) dev_info((d)->dev, ## arg)
 #define dwc2_dbg(d, arg...) dev_dbg((d)->dev, ## arg)
 #define dwc2_vdbg(d, arg...) dev_vdbg((d)->dev, ## arg)
Signature · 7 lines
2.29.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 7 lines · Enrico Jorns

dwc2_warn() is intended for printing 'warning' messages and should thus call dev_warn() instead of dev_err().

---
 drivers/usb/dwc2/core.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

Quoted 23 lines
drivers/usb/dwc2/core.h +1 -1
index fa9d6ae954..c49672c85a 100644
@@ -500,7 +500,7 @@ struct dwc2 {
 #define gadget_to_dwc2(ptr) container_of(ptr, struct dwc2, gadget)
 
 #define dwc2_err(d, arg...) dev_err((d)->dev, ## arg)
-#define dwc2_warn(d, arg...) dev_err((d)->dev, ## arg)
+#define dwc2_warn(d, arg...) dev_warn((d)->dev, ## arg)
 #define dwc2_info(d, arg...) dev_info((d)->dev, ## arg)
 #define dwc2_dbg(d, arg...) dev_dbg((d)->dev, ## arg)
 #define dwc2_vdbg(d, arg...) dev_vdbg((d)->dev, ## arg)
Signature · 7 lines
2.29.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox