]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.14.60/thermal-exynos-fix-setting-rising_threshold-for-exynos5433.patch
Fixes for 5.10
[thirdparty/kernel/stable-queue.git] / releases / 4.14.60 / thermal-exynos-fix-setting-rising_threshold-for-exynos5433.patch
1 From foo@baz Sat Jul 28 10:25:26 CEST 2018
2 From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
3 Date: Thu, 26 Apr 2018 13:51:16 +0200
4 Subject: thermal: exynos: fix setting rising_threshold for Exynos5433
5
6 From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
7
8 [ Upstream commit 8bfc218d0ebbabcba8ed2b8ec1831e0cf1f71629 ]
9
10 Add missing clearing of the previous value when setting rising
11 temperature threshold.
12
13 Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
14 Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
15 Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17 ---
18 drivers/thermal/samsung/exynos_tmu.c | 1 +
19 1 file changed, 1 insertion(+)
20
21 --- a/drivers/thermal/samsung/exynos_tmu.c
22 +++ b/drivers/thermal/samsung/exynos_tmu.c
23 @@ -598,6 +598,7 @@ static int exynos5433_tmu_initialize(str
24 threshold_code = temp_to_code(data, temp);
25
26 rising_threshold = readl(data->base + rising_reg_offset);
27 + rising_threshold &= ~(0xff << j * 8);
28 rising_threshold |= (threshold_code << j * 8);
29 writel(rising_threshold, data->base + rising_reg_offset);
30