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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230512044141.n3l6l75cfal7i26d@vireshk-i7>
Date:   Fri, 12 May 2023 10:11:41 +0530
From:   Viresh Kumar <viresh.kumar@...aro.org>
To:     Christoph Niedermaier <cniedermaier@...electronics.com>
Cc:     "linux-arm-kernel@...ts.infradead.org" 
        <linux-arm-kernel@...ts.infradead.org>,
        "Rafael J. Wysocki" <rafael@...nel.org>,
        Shawn Guo <shawnguo@...nel.org>, Marek Vasut <marex@...x.de>,
        Fabio Estevam <festevam@...x.de>,
        NXP Linux Team <linux-imx@....com>,
        "open list:CPU FREQUENCY SCALING FRAMEWORK" 
        <linux-pm@...r.kernel.org>,
        open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] cpufreq: imx6q: Disable only available frequencies

On 11-05-23, 14:38, Christoph Niedermaier wrote:
> -	if (val < OCOTP_CFG3_SPEED_996MHZ)
> -		if (dev_pm_opp_disable(dev, 996000000))
> +	if (val < OCOTP_CFG3_SPEED_996MHZ) {
> +		ret_opp = dev_pm_opp_disable(dev, 996000000);
> +		if (ret_opp < 0 && ret_opp != -ENODEV)
>  			dev_warn(dev, "failed to disable 996MHz OPP\n");
> +	}
> 
> If that's OK, I can do a version 2 with it.

Looks okay to me.

-- 
viresh

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ