diff mbox

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

Message ID 20161109140804.GD20859@localhost.localdomain (mailing list archive)
State New, archived
Headers show

Commit Message

Ladislav Michl Nov. 9, 2016, 2:08 p.m. UTC
Don't complain on -EPROBE_DEFER when initializing controller,
the driver probe will be retried later.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 drivers/usb/musb/musb_core.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Tony Lindgren Nov. 9, 2016, 5:48 p.m. UTC | #1
* Ladislav Michl <ladis@linux-mips.org> [161109 07:08]:
> Don't complain on -EPROBE_DEFER when initializing controller,
> the driver probe will be retried later.
> 
> Signed-off-by: Ladislav Michl <ladis@linux-mips.org>

Acked-by: Tony Lindgren <tony@atomide.com>

> ---
>  drivers/usb/musb/musb_core.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
> index 27dadc0..77fd97b 100644
> --- a/drivers/usb/musb/musb_core.c
> +++ b/drivers/usb/musb/musb_core.c
> @@ -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);
>  
> -- 
> 2.1.4
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Bin Liu Nov. 15, 2016, 9:13 p.m. UTC | #2
On Wed, Nov 09, 2016 at 10:48:10AM -0700, Tony Lindgren wrote:
> * Ladislav Michl <ladis@linux-mips.org> [161109 07:08]:
> > Don't complain on -EPROBE_DEFER when initializing controller,
> > the driver probe will be retried later.
> > 
> > Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
> 
> Acked-by: Tony Lindgren <tony@atomide.com>

Applied. Thanks.
-Bin.

> 
> > ---
> >  drivers/usb/musb/musb_core.c | 5 +++--
> >  1 file changed, 3 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
> > index 27dadc0..77fd97b 100644
> > --- a/drivers/usb/musb/musb_core.c
> > +++ b/drivers/usb/musb/musb_core.c
> > @@ -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);
> >  
> > -- 
> > 2.1.4
> > 
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 27dadc0..77fd97b 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -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);