[PATCH] cpufreq: imx6q: Disable only available frequencies

Viresh Kumar viresh.kumar at linaro.org
Thu May 11 21:41:41 PDT 2023


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



More information about the linux-arm-kernel mailing list