mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: marex@denx.de (Marek Vasut)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH] usb: dwc3-of-simple: fix error check of clk_get_bulk when disabled
Date: Thu, 12 Apr 2018 10:47:35 +0200	[thread overview]
Message-ID: <8730a78f-7755-5816-b014-33595f208c0e@denx.de> (raw)
In-Reply-To: <1523520830-13468-1-git-send-email-narmstrong@baylibre.com>

On 04/12/2018 10:13 AM, Neil Armstrong wrote:
> The disabled clk API returns -ENOSYS unlike the reset API returning -ENOTSUPP.
> 
> Fixes: ca7fdc8b1267 ("usb: host: Add simple of glue driver for DWC3 USB Controllers integration")
> Reported-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> ---
>  drivers/usb/host/dwc3-of-simple.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c
> index 54a5f60..1f08208 100644
> --- a/drivers/usb/host/dwc3-of-simple.c
> +++ b/drivers/usb/host/dwc3-of-simple.c
> @@ -50,7 +50,7 @@ static int dwc3_of_simple_clk_init(struct udevice *dev,
>  	int ret;
>  
>  	ret = clk_get_bulk(dev, &simple->clks);
> -	if (ret == -ENOTSUPP)
> +	if (ret == -ENOSYS)
>  		return 0;
>  	if (ret)
>  		return ret;
> 

Applied, thanks

-- 
Best regards,
Marek Vasut

      reply	other threads:[~2018-04-12  8:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-12  8:13 Neil Armstrong
2018-04-12  8:47 ` Marek Vasut [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8730a78f-7755-5816-b014-33595f208c0e@denx.de \
    --to=marex@denx.de \
    --cc=linus-amlogic@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®