diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2021-06-28 14:58:03 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-19 08:53:16 +0200 |
commit | 5e4aae9e3e6b16485ebf9053477cb81502df268a (patch) | |
tree | 0e17de8fe6c360801bf97032e76850e37c2f8fdf /mm | |
parent | ec170de13b69f52b37a66cc080f79cbb17533c89 (diff) | |
download | linux-stable-5e4aae9e3e6b16485ebf9053477cb81502df268a.tar.gz linux-stable-5e4aae9e3e6b16485ebf9053477cb81502df268a.tar.bz2 linux-stable-5e4aae9e3e6b16485ebf9053477cb81502df268a.zip |
thermal/drivers/int340x/processor_thermal: Fix tcc setting
commit fe6a6de6692e7f7159c1ff42b07ecd737df712b4 upstream.
The following fixes are done for tcc sysfs interface:
- TCC is 6 bits only from bit 29-24
- TCC of 0 is valid
- When BIT(31) is set, this register is read only
- Check for invalid tcc value
- Error for negative values
Fixes: fdf4f2fb8e899 ("drivers: thermal: processor_thermal_device: Export sysfs interface for TCC offset")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: stable@vger.kernel.org
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210628215803.75038-1-srinivas.pandruvada@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions