summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-clps711x.c
diff options
context:
space:
mode:
authorNĂ­colas F. R. A. Prado <nfraprado@collabora.com>2023-07-06 18:37:33 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2023-08-16 10:54:31 +0300
commit64de162e34e4cb2982a1d96e492f018026a61c1d (patch)
tree4576b6201b5f38901d7c459a8bc5252d81ce8a8e /drivers/gpio/gpio-clps711x.c
parentcbd8c5aae2a988bafd4586bea710eeddc30a82ce (diff)
downloadlinux-64de162e34e4cb2982a1d96e492f018026a61c1d.tar.xz
thermal/drivers/mediatek/lvts_thermal: Honor sensors in immediate mode
Each controller can be configured to operate on immediate or filtered mode. On filtered mode, the sensors are enabled by setting the corresponding bits in MONCTL0, while on immediate mode, by setting MSRCTL1. Previously, the code would set MSRCTL1 for all four sensors when configured to immediate mode, but given that the controller might not have all four sensors connected, this would cause interrupts to trigger for non-existent sensors. Fix this by handling the MSRCTL1 register analogously to the MONCTL0: only enable the sensors that were declared. Fixes: f5f633b18234 ("thermal/drivers/mediatek: Add the Low Voltage Thermal Sensor driver") Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Tested-by: Chen-Yu Tsai <wenst@chromium.org> Signed-off-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com> Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230706153823.201943-3-nfraprado@collabora.com
Diffstat (limited to 'drivers/gpio/gpio-clps711x.c')
0 files changed, 0 insertions, 0 deletions