diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-10-16 19:08:56 -0400 |
---|---|---|
committer | Kukjin Kim <kgene@kernel.org> | 2015-10-16 19:08:56 -0400 |
commit | b28fec1324bf8f5010d2c3c5d57db4115bda66d4 (patch) | |
tree | 54a37d3c211df58eb419c520306940e00f3f5307 | |
parent | b8bb9baad27e455c467e8fac47eebadbe765c18f (diff) |
thermal: exynos: Fix register read in TMU
The value of emul_con was getting overwritten if the selected soc is
SOC_ARCH_EXYNOS5260. And so as a result we were reading from the wrong
register in the case of SOC_ARCH_EXYNOS5260.
Fixes: 488c7455d74c ("thermal: exynos: Add the support for Exynos5433 TMU")
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
-rw-r--r-- | drivers/thermal/samsung/exynos_tmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 0bae8cc6c23a..ca920b0ecf8f 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c | |||
@@ -932,7 +932,7 @@ static void exynos4412_tmu_set_emulation(struct exynos_tmu_data *data, | |||
932 | 932 | ||
933 | if (data->soc == SOC_ARCH_EXYNOS5260) | 933 | if (data->soc == SOC_ARCH_EXYNOS5260) |
934 | emul_con = EXYNOS5260_EMUL_CON; | 934 | emul_con = EXYNOS5260_EMUL_CON; |
935 | if (data->soc == SOC_ARCH_EXYNOS5433) | 935 | else if (data->soc == SOC_ARCH_EXYNOS5433) |
936 | emul_con = EXYNOS5433_TMU_EMUL_CON; | 936 | emul_con = EXYNOS5433_TMU_EMUL_CON; |
937 | else if (data->soc == SOC_ARCH_EXYNOS7) | 937 | else if (data->soc == SOC_ARCH_EXYNOS7) |
938 | emul_con = EXYNOS7_TMU_REG_EMUL_CON; | 938 | emul_con = EXYNOS7_TMU_REG_EMUL_CON; |