Skip to contentSkip to conversation

usb: musb: don't complain on -EPROBE_DEFER when initializing controller

PATCH Applied Ladislav Michl 3 participants 3 messages Nov 9, 2016 – Nov 15, 2016 2 messages not in the archive

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

PATCH 1/1 usb: musb: don't complain on -EPROBE_DEFER when initializing controller

Don't complain on -EPROBE_DEFER when initializing controller, the driver probe will be retried later.

---
 drivers/usb/musb/musb_core.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/usb/musb/musb_core.c +3 -2
index 27dadc0..77fd97b 100644
@@ -2329,8 +2329,9 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
 	musb_platform_exit(musb);
 
 fail1:
-	dev_err(musb->controller,
-		"musb_init_controller failed with status %d\n", status);
+	if (status != -EPROBE_DEFER)
+		dev_err(musb->controller,
+			"%s failed with status %d\n", __func__, status);
 
 	musb_free(musb);
 
Signature · 6 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20161109140804.GD20859-bi+AKbBUZKY6gyzm1THtWbp2dZbC/[email protected]

Acked-by
#2 lore raw
Quoted 4 lines · Ladislav Michl

Don't complain on -EPROBE_DEFER when initializing controller, the driver probe will be retried later.

Quoted 23 lines
---
 drivers/usb/musb/musb_core.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/usb/musb/musb_core.c +3 -2
index 27dadc0..77fd97b 100644
@@ -2329,8 +2329,9 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
 	musb_platform_exit(musb);
 
 fail1:
-	dev_err(musb->controller,
-		"musb_init_controller failed with status %d\n", status);
+	if (status != -EPROBE_DEFER)
+		dev_err(musb->controller,
+			"%s failed with status %d\n", __func__, status);
 
 	musb_free(musb);
 
Signature · 1 line
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

Applied
#4 lore raw
Quoted 7 lines · Tony Lindgren
Quoted 4 lines · Ladislav Michl

Don't complain on -EPROBE_DEFER when initializing controller, the driver probe will be retried later.

Applied. Thanks.
-Bin.

Quoted 19 lines
Quoted 19 lines
---
 drivers/usb/musb/musb_core.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/usb/musb/musb_core.c +3 -2
index 27dadc0..77fd97b 100644
@@ -2329,8 +2329,9 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
 	musb_platform_exit(musb);
 
 fail1:
-	dev_err(musb->controller,
-		"musb_init_controller failed with status %d\n", status);
+	if (status != -EPROBE_DEFER)
+		dev_err(musb->controller,
+			"%s failed with status %d\n", __func__, status);
 
Quoted 5 lines
Quoted 5 lines
drivers/usb/musb/musb_core.c +0 -0
 	musb_free(musb);
 
Signature · 1 line
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html