summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-stm32f4.c
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2022-05-10 20:22:21 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-05-11 20:08:15 +0200
commit7b145802ba545ecf9446ce6d67d6011b73dac0e0 (patch)
treedc590fd3728c1c7d61d115b322334f1c4a67fa46 /drivers/clk/clk-stm32f4.c
parentLinux 5.18-rc6 (diff)
downloadlinux-7b145802ba545ecf9446ce6d67d6011b73dac0e0.tar.xz
linux-7b145802ba545ecf9446ce6d67d6011b73dac0e0.zip
thermal: int340x: Mode setting with new OS handshake
With the new OS handshake introduced by commit: "c7ff29763989 ("thermal: int340x: Update OS policy capability handshake")", the "enabled" thermal zone mode doesn't work in the same way as previously. The "enabled" mode fails with -EINVAL when the new handshake is used. To address this issue, when the new OS UUID mask is set: - When the mode is "enabled", return 0 as the firmware already has the latest policy mask. - When the mode is "disabled", update the firmware with the UUID mask of zero. This way, the firmware can take over the thermal control. Also reset the OS UUID mask, which allows user space to update with new set of policies. Fixes: c7ff29763989 ("thermal: int340x: Update OS policy capability handshake") Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> [ rjw: Changelog edits, removed unneeded parens ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/clk/clk-stm32f4.c')
0 files changed, 0 insertions, 0 deletions