lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <DB6PR0402MB27601F676286D00AE50B144988199@DB6PR0402MB2760.eurprd04.prod.outlook.com>
Date:   Thu, 8 Jul 2021 03:01:15 +0000
From:   "Peng Fan (OSS)" <peng.fan@....nxp.com>
To:     "Peng Fan (OSS)" <peng.fan@....nxp.com>,
        "sboyd@...nel.org" <sboyd@...nel.org>,
        "mturquette@...libre.com" <mturquette@...libre.com>
CC:     "linux-clk@...r.kernel.org" <linux-clk@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-arm-kernel@...ts.infradead.org" 
        <linux-arm-kernel@...ts.infradead.org>,
        "kernel@...gutronix.de" <kernel@...gutronix.de>
Subject: RE: [PATCH] clk: not calculate new rate for protected clks

> Subject: [PATCH] clk: not calculate new rate for protected clks

Gentle ping...

Thanks,
Peng.

> 
> From: Peng Fan <peng.fan@....com>
> 
> If the protect_count of the parent clk is not 0, we not calculate new rates for
> parent. Otherwise, the common clk framework may configure other child clks
> that is under using.
> 
> Signed-off-by: Peng Fan <peng.fan@....com>
> ---
>  drivers/clk/clk.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index
> 65508eb89ec9..8ac121838e13 100644
> --- a/drivers/clk/clk.c
> +++ b/drivers/clk/clk.c
> @@ -2002,7 +2002,7 @@ static struct clk_core *clk_calc_new_rates(struct
> clk_core *core,
>  	}
> 
>  	if ((core->flags & CLK_SET_RATE_PARENT) && parent &&
> -	    best_parent_rate != parent->rate)
> +	    best_parent_rate != parent->rate &&
> +!clk_core_rate_is_protected(parent))
>  		top = clk_calc_new_rates(parent, best_parent_rate);
> 
>  out:
> --
> 2.30.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ