mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
- Fix invalid index array access on int340x_thermal leading to a
kernel panic (Bartosz Szczepanek) - Fix debug message level to prevent flooding on some platform (Alex Hung) - Fix invalid bank access by reverting "thermal: mediatek: fix register index error" (Enric Balletbo i Serra) -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEGn3N4YVz0WNVyHskqDIjiipP6E8FAl8QFhUACgkQqDIjiipP 6E99Uwf+O+MIwd4epoWG6L3SYYaOJZpkmdYJoWIXxLZu5jGiS0uf48utaXVJrTSQ 5VXCoqd2alxzAE2ZveqEV2Lp558+rT7cRmWd6ZH6UPVEC2j+1TzVfcSwJRm8jrNN lbmt2785wcUsfRzuHqfCEIDW6HTjfcGj4d+a8CJ4K/58CdhaxOxGgDK5Wsmmy/jF Fkco37wUVw0Ew9cAuc2OwB8hOjDMtMnBZ4xoPSaptIVEyCUurl+c1JOxFkubOM0x a7DyBS8zKM4UVGo7jaUXwC/28TUFDZNJD8E7H4JOJfVSqK5l3HKfjqeVE44cS2SJ u9RvLCyQkp/+CC75MfIEEpqgDLHZcA== =0Xzx -----END PGP SIGNATURE----- Merge tag 'thermal-v5.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux into master Pull thermal fixes from Daniel Lezcano: - Fix invalid index array access on int340x_thermal leading to a kernel panic (Bartosz Szczepanek) - Fix debug message level to prevent flooding on some platform (Alex Hung) - Fix invalid bank access by reverting "thermal: mediatek: fix register index error" (Enric Balletbo i Serra) * tag 'thermal-v5.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux: Revert "thermal: mediatek: fix register index error" thermal: int3403_thermal: Downgrade error message thermal/int340x_thermal: Prevent page fault on .set_mode() op
This commit is contained in:
commit
7e8d2f6d4d
@ -216,11 +216,16 @@ static int int3400_thermal_run_osc(acpi_handle handle,
|
||||
acpi_status status;
|
||||
int result = 0;
|
||||
struct acpi_osc_context context = {
|
||||
.uuid_str = int3400_thermal_uuids[uuid],
|
||||
.uuid_str = NULL,
|
||||
.rev = 1,
|
||||
.cap.length = 8,
|
||||
};
|
||||
|
||||
if (uuid < 0 || uuid >= INT3400_THERMAL_MAXIMUM_UUID)
|
||||
return -EINVAL;
|
||||
|
||||
context.uuid_str = int3400_thermal_uuids[uuid];
|
||||
|
||||
buf[OSC_QUERY_DWORD] = 0;
|
||||
buf[OSC_SUPPORT_DWORD] = enable;
|
||||
|
||||
|
@ -74,7 +74,7 @@ static void int3403_notify(acpi_handle handle,
|
||||
THERMAL_TRIP_CHANGED);
|
||||
break;
|
||||
default:
|
||||
dev_err(&priv->pdev->dev, "Unsupported event [0x%x]\n", event);
|
||||
dev_dbg(&priv->pdev->dev, "Unsupported event [0x%x]\n", event);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -594,8 +594,7 @@ static int mtk_thermal_bank_temperature(struct mtk_thermal_bank *bank)
|
||||
u32 raw;
|
||||
|
||||
for (i = 0; i < conf->bank_data[bank->id].num_sensors; i++) {
|
||||
raw = readl(mt->thermal_base +
|
||||
conf->msr[conf->bank_data[bank->id].sensors[i]]);
|
||||
raw = readl(mt->thermal_base + conf->msr[i]);
|
||||
|
||||
temp = raw_to_mcelsius(mt,
|
||||
conf->bank_data[bank->id].sensors[i],
|
||||
@ -736,8 +735,7 @@ static void mtk_thermal_init_bank(struct mtk_thermal *mt, int num,
|
||||
|
||||
for (i = 0; i < conf->bank_data[num].num_sensors; i++)
|
||||
writel(conf->sensor_mux_values[conf->bank_data[num].sensors[i]],
|
||||
mt->thermal_base +
|
||||
conf->adcpnp[conf->bank_data[num].sensors[i]]);
|
||||
mt->thermal_base + conf->adcpnp[i]);
|
||||
|
||||
writel((1 << conf->bank_data[num].num_sensors) - 1,
|
||||
controller_base + TEMP_MONCTL0);
|
||||
|
Loading…
Reference in New Issue
Block a user