public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: alice.guo@oss.nxp.com
Cc: u-boot@lists.denx.de, lukma@denx.de, seanga2@gmail.com,
	peng.fan@nxp.com, ye.li@nxp.com, alice.guo@nxp.com,
	etienne.carriere@foss.st.com, akashi.tkhro@gmail.com,
	Ranjani.Vaidyanathan@nxp.com, festevam@gmail.com, marex@denx.de
Subject: Re: [PATCH 4/4] clk: scmi: Add workaround for set_rate/enable/disable
Date: Mon, 7 Oct 2024 11:02:44 -0600	[thread overview]
Message-ID: <20241007170244.GZ4737@bill-the-cat> (raw)
In-Reply-To: <20241006093825.2800013-4-alice.guo@oss.nxp.com>

[-- Attachment #1: Type: text/plain, Size: 1267 bytes --]

On Sun, Oct 06, 2024 at 05:38:25PM +0800, alice.guo@oss.nxp.com wrote:
> From: Ye Li <ye.li@nxp.com>
> 
> Add workaround to set_rate/enable/disable to bus clock that SM
> will reply DENIED error.
> 
> Signed-off-by: Ye Li <ye.li@nxp.com>
> Signed-off-by: Alice Guo <alice.guo@nxp.com>
> Reviewed-by: Peng Fan <peng.fan@nxp.com>

In general, please include a cover letter so it will be clearer what the
overall goal is, especially once merged.

> ---
>  drivers/clk/clk_scmi.c | 21 +++++++++++++++++++--
>  1 file changed, 19 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/clk/clk_scmi.c b/drivers/clk/clk_scmi.c
> index a01292c479..a860a653ba 100644
> --- a/drivers/clk/clk_scmi.c
> +++ b/drivers/clk/clk_scmi.c
> @@ -73,7 +73,13 @@ static int scmi_clk_gate(struct clk *clk, int enable)
>  	if (ret)
>  		return ret;
>  
> -	return scmi_to_linux_errno(out.status);
> +	ret = scmi_to_linux_errno(out.status);
> +	if (ret == -EACCES) {
> +		debug("Ignore %s enable failure\n", clk_hw_get_name(clk));
> +		ret = 0;
> +	}
> +
> +	return ret;
>  }

This seems like a generic change being made globally and not a
work-around for a specific problem on (some?) iMX families. Has this
been tested on other platforms?

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2024-10-07 17:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-06  9:38 [PATCH 1/4] clk: scmi: support set parent alice.guo
2024-10-06  9:38 ` [PATCH 2/4] scmi_protocols: Update parent clock set ID alice.guo
2024-10-06  9:38 ` [PATCH 3/4] clk: scmi: support probe in pre-reloc stage alice.guo
2024-10-06  9:38 ` [PATCH 4/4] clk: scmi: Add workaround for set_rate/enable/disable alice.guo
2024-10-07 17:02   ` Tom Rini [this message]
2024-10-08  3:02     ` Peng Fan
2024-10-08  3:47       ` Tom Rini

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=20241007170244.GZ4737@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=Ranjani.Vaidyanathan@nxp.com \
    --cc=akashi.tkhro@gmail.com \
    --cc=alice.guo@nxp.com \
    --cc=alice.guo@oss.nxp.com \
    --cc=etienne.carriere@foss.st.com \
    --cc=festevam@gmail.com \
    --cc=lukma@denx.de \
    --cc=marex@denx.de \
    --cc=peng.fan@nxp.com \
    --cc=seanga2@gmail.com \
    --cc=u-boot@lists.denx.de \
    --cc=ye.li@nxp.com \
    /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