lkml.org 
[lkml]   [2023]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2023-05-12 06:42    [W:0.037 / U:0.980 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site