Skip to contentSkip to conversation

Fix race condition for X670E Hero

PATCH Applied Eugene Shalygin 2 participants 3 messages Aug 21, 2023

Subsystems (2)
lore
Share & tools
lore

Eugene Shalygin

author maintainer
#0 lore raw

v2 cover Fix race condition for X670E Hero

Changes in v2:
- Add a link to a GitHub inssue to the commit message.

Eugene Shalygin (1):
hwmon: (asus-ec-sensosrs) fix mutex path for X670E Hero

 drivers/hwmon/asus-ec-sensors.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.41.0
author maintainer
#1 lore raw

PATCH v2 1/1 hwmon: (asus-ec-sensosrs) fix mutex path for X670E Hero

A user reported that they observe race condition warning [1] and after looking once again into the DSDT source it was found that wrong mutex was used.

[1] https://github.com/zeule/asus-ec-sensors/issues/43

Fixes 790dec13c012 ("hwmon: (asus-ec-sensors) add ROG Crosshair X670E Hero.")
---
 drivers/hwmon/asus-ec-sensors.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/asus-ec-sensors.c +1 -1
index f52a539eb33e..51f9c2db403e 100644
@@ -340,7 +340,7 @@ static const struct ec_board_info board_info_crosshair_x670e_hero = {
 	.sensors = SENSOR_TEMP_CPU | SENSOR_TEMP_CPU_PACKAGE |
 		SENSOR_TEMP_MB | SENSOR_TEMP_VRM |
 		SENSOR_SET_TEMP_WATER,
-	.mutex_path = ASUS_HW_ACCESS_MUTEX_RMTW_ASMX,
+	.mutex_path = ACPI_GLOBAL_LOCK_PSEUDO_PATH,
 	.family = family_amd_600_series,
 };
 
Signature · 1 line
2.41.0
maintainer Applied
#2 lore raw

Re: [PATCH v2 1/1] hwmon: (asus-ec-sensosrs) fix mutex path for X670E Hero

Quoted 8 lines · Eugene Shalygin

A user reported that they observe race condition warning [1] and after looking once again into the DSDT source it was found that wrong mutex was used.

[1] https://github.com/zeule/asus-ec-sensors/issues/43

Fixes 790dec13c012 ("hwmon: (asus-ec-sensors) add ROG Crosshair X670E Hero.")

Applied.

Note that you don't have to (and should not) send an introduction for a 1-patch "series". Add the change log after "---" instead.

Thanks,
Guenter

Quoted 17 lines
---
 drivers/hwmon/asus-ec-sensors.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/asus-ec-sensors.c +1 -1
index f52a539eb33e..51f9c2db403e 100644
@@ -340,7 +340,7 @@ static const struct ec_board_info board_info_crosshair_x670e_hero = {
 	.sensors = SENSOR_TEMP_CPU | SENSOR_TEMP_CPU_PACKAGE |
 		SENSOR_TEMP_MB | SENSOR_TEMP_VRM |
 		SENSOR_SET_TEMP_WATER,
-	.mutex_path = ASUS_HW_ACCESS_MUTEX_RMTW_ASMX,
+	.mutex_path = ACPI_GLOBAL_LOCK_PSEUDO_PATH,
 	.family = family_amd_600_series,
 };