[PATCH 2/2] hwmon: (asus-ec-sensors) increase timeout for locking ACPI mutex

Eugene Shalygin posted 2 patches 1 week, 1 day ago
[PATCH 2/2] hwmon: (asus-ec-sensors) increase timeout for locking ACPI mutex
Posted by Eugene Shalygin 1 week, 1 day ago
From: Ben Copeland <ben.copeland@linaro.org>

Some motherboards require more time to acquire the ACPI mutex,
causing "Failed to acquire mutex" messages to appear in the kernel log.
Increase the timeout from 500ms to 800ms to accommodate these cases.

Signed-off-by: Ben Copeland <ben.copeland@linaro.org>
Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
---
 drivers/hwmon/asus-ec-sensors.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwmon/asus-ec-sensors.c b/drivers/hwmon/asus-ec-sensors.c
index ce3ea0333fd9..34a8f6b834c9 100644
--- a/drivers/hwmon/asus-ec-sensors.c
+++ b/drivers/hwmon/asus-ec-sensors.c
@@ -49,7 +49,7 @@ static char *mutex_path_override;
  */
 #define ASUS_EC_MAX_BANK	3
 
-#define ACPI_LOCK_DELAY_MS	500
+#define ACPI_LOCK_DELAY_MS	800
 
 /* ACPI mutex for locking access to the EC for the firmware */
 #define ASUS_HW_ACCESS_MUTEX_ASMX	"\\AMW0.ASMX"
-- 
2.51.0
Re: [PATCH 2/2] hwmon: (asus-ec-sensors) increase timeout for locking ACPI mutex
Posted by Guenter Roeck 1 week ago
On Tue, Sep 23, 2025 at 09:26:56PM +0200, Eugene Shalygin wrote:
> From: Ben Copeland <ben.copeland@linaro.org>
> 
> Some motherboards require more time to acquire the ACPI mutex,
> causing "Failed to acquire mutex" messages to appear in the kernel log.
> Increase the timeout from 500ms to 800ms to accommodate these cases.
> 
> Signed-off-by: Ben Copeland <ben.copeland@linaro.org>
> Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>

Applied.

Guenter