|
@@ -126,7 +126,7 @@ Link: https://lore.kernel.org/r/[email protected]
|
|
|
bool should_update_thresh;
|
|
|
|
|
|
lvts_sensor->low_thresh = low;
|
|
|
-@@ -692,7 +701,7 @@ static int lvts_calibration_read(struct
|
|
|
+@@ -694,7 +703,7 @@ static int lvts_calibration_read(struct
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -135,7 +135,7 @@ Link: https://lore.kernel.org/r/[email protected]
|
|
|
{
|
|
|
u32 gt;
|
|
|
|
|
|
-@@ -701,7 +710,7 @@ static int lvts_golden_temp_init(struct
|
|
|
+@@ -703,7 +712,7 @@ static int lvts_golden_temp_init(struct
|
|
|
if (gt && gt < LVTS_GOLDEN_TEMP_MAX)
|
|
|
golden_temp = gt;
|
|
|
|
|
@@ -144,7 +144,7 @@ Link: https://lore.kernel.org/r/[email protected]
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
-@@ -724,7 +733,7 @@ static int lvts_ctrl_init(struct device
|
|
|
+@@ -726,7 +735,7 @@ static int lvts_ctrl_init(struct device
|
|
|
* The golden temp information is contained in the first chunk
|
|
|
* of efuse data.
|
|
|
*/
|
|
@@ -153,7 +153,7 @@ Link: https://lore.kernel.org/r/[email protected]
|
|
|
if (ret)
|
|
|
return ret;
|
|
|
|
|
|
-@@ -735,6 +744,7 @@ static int lvts_ctrl_init(struct device
|
|
|
+@@ -737,6 +746,7 @@ static int lvts_ctrl_init(struct device
|
|
|
for (i = 0; i < lvts_data->num_lvts_ctrl; i++) {
|
|
|
|
|
|
lvts_ctrl[i].base = lvts_td->base + lvts_data->lvts_ctrl[i].offset;
|
|
@@ -161,7 +161,7 @@ Link: https://lore.kernel.org/r/[email protected]
|
|
|
|
|
|
ret = lvts_sensor_init(dev, &lvts_ctrl[i],
|
|
|
&lvts_data->lvts_ctrl[i]);
|
|
|
-@@ -758,7 +768,8 @@ static int lvts_ctrl_init(struct device
|
|
|
+@@ -760,7 +770,8 @@ static int lvts_ctrl_init(struct device
|
|
|
* after initializing the calibration.
|
|
|
*/
|
|
|
lvts_ctrl[i].hw_tshut_raw_temp =
|
|
@@ -171,7 +171,7 @@ Link: https://lore.kernel.org/r/[email protected]
|
|
|
|
|
|
lvts_ctrl[i].low_thresh = INT_MIN;
|
|
|
lvts_ctrl[i].high_thresh = INT_MIN;
|
|
|
-@@ -1223,6 +1234,8 @@ static int lvts_probe(struct platform_de
|
|
|
+@@ -1225,6 +1236,8 @@ static int lvts_probe(struct platform_de
|
|
|
if (irq < 0)
|
|
|
return irq;
|
|
|
|
|
@@ -180,7 +180,7 @@ Link: https://lore.kernel.org/r/[email protected]
|
|
|
ret = lvts_domain_init(dev, lvts_td, lvts_data);
|
|
|
if (ret)
|
|
|
return dev_err_probe(dev, ret, "Failed to initialize the lvts domain\n");
|
|
|
-@@ -1336,11 +1349,15 @@ static const struct lvts_ctrl_data mt819
|
|
|
+@@ -1338,11 +1351,15 @@ static const struct lvts_ctrl_data mt819
|
|
|
static const struct lvts_data mt8195_lvts_mcu_data = {
|
|
|
.lvts_ctrl = mt8195_lvts_mcu_data_ctrl,
|
|
|
.num_lvts_ctrl = ARRAY_SIZE(mt8195_lvts_mcu_data_ctrl),
|