diff options
author | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-04-26 07:51:24 -0400 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2018-05-06 19:23:26 -0400 |
commit | 736b11d1d37cd02f3ddd7072fa4fd8adb2fa245d (patch) | |
tree | 1553fd614d831e4a246b9f6dbb5591102c71173c /drivers/thermal | |
parent | c35268f589d545fb4da5f4231fdc6c523a3724d3 (diff) |
thermal: exynos: clear IRQs later in exynos4412_tmu_initialize()
Clear IRQs after enabling thermal tripping (it should make no
difference in driver operation). This prepares the driver code
to moving IRQs clearing call from ->tmu_initialize method to
exynos_tmu_initialize().
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/samsung/exynos_tmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 44a426a607d1..1664d37ce84d 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c | |||
@@ -470,8 +470,6 @@ static void exynos4412_tmu_initialize(struct platform_device *pdev) | |||
470 | writel(rising_threshold, data->base + EXYNOS_THD_TEMP_RISE); | 470 | writel(rising_threshold, data->base + EXYNOS_THD_TEMP_RISE); |
471 | writel(get_th_reg(data, 0, true), data->base + EXYNOS_THD_TEMP_FALL); | 471 | writel(get_th_reg(data, 0, true), data->base + EXYNOS_THD_TEMP_FALL); |
472 | 472 | ||
473 | data->tmu_clear_irqs(data); | ||
474 | |||
475 | /* if last threshold limit is also present */ | 473 | /* if last threshold limit is also present */ |
476 | for (i = 0; i < of_thermal_get_ntrips(data->tzd); i++) { | 474 | for (i = 0; i < of_thermal_get_ntrips(data->tzd); i++) { |
477 | if (trips[i].type == THERMAL_TRIP_CRITICAL) { | 475 | if (trips[i].type == THERMAL_TRIP_CRITICAL) { |
@@ -488,6 +486,8 @@ static void exynos4412_tmu_initialize(struct platform_device *pdev) | |||
488 | con = readl(data->base + EXYNOS_TMU_REG_CONTROL); | 486 | con = readl(data->base + EXYNOS_TMU_REG_CONTROL); |
489 | con |= (1 << EXYNOS_TMU_THERM_TRIP_EN_SHIFT); | 487 | con |= (1 << EXYNOS_TMU_THERM_TRIP_EN_SHIFT); |
490 | writel(con, data->base + EXYNOS_TMU_REG_CONTROL); | 488 | writel(con, data->base + EXYNOS_TMU_REG_CONTROL); |
489 | |||
490 | data->tmu_clear_irqs(data); | ||
491 | } | 491 | } |
492 | 492 | ||
493 | static void exynos5433_tmu_initialize(struct platform_device *pdev) | 493 | static void exynos5433_tmu_initialize(struct platform_device *pdev) |