[PATCH v2 5/9] thermal/drivers/mediatek/lvts: Add lvts_temp_to_raw variant

Chen-Yu Tsai wenst at chromium.org
Thu Jul 31 02:10:21 PDT 2025


On Wed, Jul 30, 2025 at 11:22 PM Laura Nao <laura.nao at collabora.com> wrote:
>
> MT8196/MT6991 require a different version of lvts_temp_to_raw(),
> specifically the multiplicative inverse of the existing implementation.
> Introduce a variant of the function with inverted calculation logic to
> match this requirement.
>
> This ensures accurate raw value generation for temperature
> thresholds, avoiding spurious thermal interrupts or unintended hardware
> resets on MT8196/MT6991.
>
> Signed-off-by: Laura Nao <laura.nao at collabora.com>

Reviewed-by: Chen-Yu Tsai <wenst at chromium.org>



More information about the Linux-mediatek mailing list