Revert "thermal/drivers/mediatek: Add delay after thermal banks initialization"
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 19 Apr 2023 06:11:45 +0000 (08:11 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 26 Apr 2023 08:38:34 +0000 (10:38 +0200)
commit0a677eea71fd58aa3bc805edfdbe8b0f11815c7d
treed4afa924cf218453840e0a006ec1edd025dbc742
parent2912d341800bb9781c0a0ed2bedc10b2c1fd5909
Revert "thermal/drivers/mediatek: Add delay after thermal banks initialization"

Some more testing revealed that this commit introduces a regression on some
MT8173 Chromebooks and at least on one MT6795 Sony Xperia M5 smartphone due
to the delay being apparently variable and machine specific.

Another solution would be to delay for a bit more (~70ms) but this is not
feasible for two reasons: first of all, we're adding an even bigger delay
in a probe function; second, some machines need less, some may need even
more, making the msleep at probe solution highly suboptimal.

This reverts commit 10debf8c2da8011c8009dd4b3f6d0ab85891c81b.

Fixes: 10debf8c2da8 ("thermal/drivers/mediatek: Add delay after thermal banks initialization")
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230419061146.22246-2-angelogioacchino.delregno@collabora.com
drivers/thermal/mediatek/auxadc_thermal.c