mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
thermal/drivers/airoha: Fix copy paste error for sen internal
In airoha_thermal_setup_monitor there is a copy paste error on configuring
the internval for temp monitor. Fix the error and use the correct mask for
the sen interval for the EN7581_TEMPMONCTL2 register.
Fixes: 42de37f40e ("thermal/drivers: Add support for Airoha EN7581 thermal sensor")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Reviewed-by: Wayen Yan <win847@gmail.com>
Link: https://patch.msgid.link/20260702094846.17325-3-ansuelsmth@gmail.com
This commit is contained in:
parent
251621813f
commit
6791265d60
|
|
@ -403,7 +403,7 @@ static void airoha_thermal_setup_monitor(struct airoha_thermal_priv *priv)
|
|||
* sen interval is 379 * 52.715us = 19.97ms
|
||||
*/
|
||||
writel(FIELD_PREP(EN7581_FILT_INTERVAL, 1) |
|
||||
FIELD_PREP(EN7581_FILT_INTERVAL, 379),
|
||||
FIELD_PREP(EN7581_SEN_INTERVAL, 379),
|
||||
priv->base + EN7581_TEMPMONCTL2);
|
||||
|
||||
/* AHB poll is set to 146 * 68.64 = 10.02us */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user