]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
hwmon: (asus-ec-sensors) increase timeout for locking ACPI mutex
authorBen Copeland <ben.copeland@linaro.org>
Tue, 23 Sep 2025 19:26:56 +0000 (21:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Nov 2025 20:34:07 +0000 (15:34 -0500)
[ Upstream commit 584d55be66ef151e6ef9ccb3dcbc0a2155559be1 ]

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>
Link: https://lore.kernel.org/r/20250923192935.11339-3-eugene.shalygin@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/asus-ec-sensors.c

index fdc157c7394d98c7f9f7573c1c01a8e5341b3304..483dfb806cc5104b2e21422df94926e4ed6a8440 100644 (file)
@@ -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"