thermal/drivers/mediatek: Add delay after thermal banks initialization
authorAmjad Ouled-Ameur <aouledameur@baylibre.com>
Fri, 27 Jan 2023 15:44:46 +0000 (16:44 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sat, 1 Apr 2023 18:51:29 +0000 (20:51 +0200)
commit10debf8c2da8011c8009dd4b3f6d0ab85891c81b
treef514adf885903dbc8b20daef6c72a02c0bd24674
parent56edffdc298a056ed6923c89b9af7c927ff0ac8f
thermal/drivers/mediatek: Add delay after thermal banks initialization

Thermal sensor reads performed immediately after thermal bank
initialization returns bogus values. This is currently tackled by returning
0 if the temperature is bogus (exceeding 200000).

Instead, add a delay between the bank init and the thermal zone device
register to properly fix this.

Signed-off-by: Michael Kao <michael.kao@mediatek.com>
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: Amjad Ouled-Ameur <aouledameur@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20221018-up-i350-thermal-bringup-v9-5-55a1ae14af74@baylibre.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/mediatek/auxadc_thermal.c