From d22e3fd047e4a597a3e2157ea3e46254c4891c49 Mon Sep 17 00:00:00 2001 From: Vasiliy Stelmachenok <92667539+ventureoo@users.noreply.github.com> Date: Thu, 12 Sep 2024 11:22:16 +0000 Subject: [PATCH] udev/sata: Check for presence of power management policy attribute (#84) For some removable devices link_power_management_policy cannot be changed, causing some annoying errors in logs. Signed-off-by: Vasiliy Stelmachenok --- usr/lib/udev/rules.d/50-sata.rules | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr/lib/udev/rules.d/50-sata.rules b/usr/lib/udev/rules.d/50-sata.rules index e8dcab3..02d3d86 100644 --- a/usr/lib/udev/rules.d/50-sata.rules +++ b/usr/lib/udev/rules.d/50-sata.rules @@ -1,3 +1,2 @@ # SATA Active Link Power Management - -ACTION=="add", SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="max_performance" +ACTION=="add", SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}=="*", ATTR{link_power_management_policy}="max_performance"