Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1513452

Re: [PATCH] usb: musb: da8xx: Don't print phy error on -EPROBE_DEFER

From Bin Liu <b-liu@ti.com>
Newsgroups linux.kernel
Subject Re: [PATCH] usb: musb: da8xx: Don't print phy error on -EPROBE_DEFER
Date 2016-11-01 20:50 +0100
Message-ID <syNei-4vc-21@gated-at.bofh.it> (permalink)
References <swfgJ-1ib-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

On Tue, Oct 25, 2016 at 02:02:50PM -0500, David Lechner wrote:
> This suppresses printing the error message "failed to get phy" in the
> kernel log when the error is -EPROBE_DEFER. This prevents usless noise
> in the kernel log.
> 
> Signed-off-by: David Lechner <david@lechnology.com>

Applied. Thanks.

Regards,
-Bin.

> ---
>  drivers/usb/musb/da8xx.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c
> index 481d786..f8a1591 100644
> --- a/drivers/usb/musb/da8xx.c
> +++ b/drivers/usb/musb/da8xx.c
> @@ -516,7 +516,8 @@ static int da8xx_probe(struct platform_device *pdev)
>  
>  	glue->phy = devm_phy_get(&pdev->dev, "usb-phy");
>  	if (IS_ERR(glue->phy)) {
> -		dev_err(&pdev->dev, "failed to get phy\n");
> +		if (PTR_ERR(glue->phy) != -EPROBE_DEFER)
> +			dev_err(&pdev->dev, "failed to get phy\n");
>  		return PTR_ERR(glue->phy);
>  	}
>  
> -- 
> 2.7.4
> 

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] usb: musb: da8xx: Don't print phy error on -EPROBE_DEFER Bin Liu <b-liu@ti.com> - 2016-11-01 20:50 +0100

csiph-web