systemd/SOURCES/1160-hwdb-say-that-settings-can-be-also-set-to-0.patch

109 lines
3.3 KiB
Diff

From 596eef645ec638ac2ac07e706c71baba934fbc26 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Date: Wed, 14 May 2025 17:59:34 +0200
Subject: [PATCH] hwdb: say that settings can be also set to 0
We recommend that users create overriddes. This creates the problem that there
is no syntax to unset a property. Thus, the user needs to just set the property
to "something else" in the override file. But then the blurb saying that
"VAR=1" (or "VAR=0" in some cases) is the only allowed value can be confusing.
Say that both 0 and 1 can be set, since this documentation is also intended
for end users.
In our files, we generally don't want the override values anywhere. But we
have a test which checks the rvalue, which should be enough.
(cherry picked from commit 9282a85ed73e294bb67c4935ce65d588ed9315c7)
Resolves: RHEL-72697
---
hwdb.d/60-autosuspend.hwdb | 4 ++--
hwdb.d/60-seat.hwdb | 2 +-
hwdb.d/70-av-production.hwdb | 2 +-
hwdb.d/70-hardware-wallets.hwdb | 2 +-
hwdb.d/70-lights.hwdb | 2 +-
hwdb.d/70-software-radio.hwdb | 2 +-
6 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/hwdb.d/60-autosuspend.hwdb b/hwdb.d/60-autosuspend.hwdb
index af7d8ba567..f564c6aed9 100644
--- a/hwdb.d/60-autosuspend.hwdb
+++ b/hwdb.d/60-autosuspend.hwdb
@@ -22,9 +22,9 @@
# for the device.
#
# Allowed properties are:
-# ID_AUTOSUSPEND=1
+# ID_AUTOSUSPEND=0|1
# ID_AUTOSUSPEND_DELAY_MS=####
-# ID_PERSIST=0
+# ID_PERSIST=0|1
#
# ID_AUTOSUSPEND_DELAY_MS adjusts the delay for autosuspend to something
# different than the kernel default of 2000ms.
diff --git a/hwdb.d/60-seat.hwdb b/hwdb.d/60-seat.hwdb
index 927ea025a2..4b1fc2c1bb 100644
--- a/hwdb.d/60-seat.hwdb
+++ b/hwdb.d/60-seat.hwdb
@@ -8,7 +8,7 @@
# device, and not the (parent) PCI device, is tagged with 'master-of-seat'.
#
# Allowed properties are:
-# ID_TAG_MASTER_OF_SEAT=1
+# ID_TAG_MASTER_OF_SEAT=0|1
#########################################
# eXtreme Graphic Innovation (XGI)
diff --git a/hwdb.d/70-av-production.hwdb b/hwdb.d/70-av-production.hwdb
index dc3fddf0e0..fee74729c4 100644
--- a/hwdb.d/70-av-production.hwdb
+++ b/hwdb.d/70-av-production.hwdb
@@ -21,7 +21,7 @@
# for the device.
#
# Allowed properties are:
-# ID_AV_PRODUCTION_CONTROLLER=1
+# ID_AV_PRODUCTION_CONTROLLER=0|1
################
# Ableton
diff --git a/hwdb.d/70-hardware-wallets.hwdb b/hwdb.d/70-hardware-wallets.hwdb
index 24983f3f92..94fe332872 100644
--- a/hwdb.d/70-hardware-wallets.hwdb
+++ b/hwdb.d/70-hardware-wallets.hwdb
@@ -18,7 +18,7 @@
# for the device.
#
# Allowed properties are:
-# ID_HARDWARE_WALLET=1
+# ID_HARDWARE_WALLET=0|1
################
# Trezor Hardware Wallets
diff --git a/hwdb.d/70-lights.hwdb b/hwdb.d/70-lights.hwdb
index 70c152c8b8..a7753710ed 100644
--- a/hwdb.d/70-lights.hwdb
+++ b/hwdb.d/70-lights.hwdb
@@ -20,7 +20,7 @@
# for the device.
#
# Allowed properties are:
-# ID_AV_LIGHTS=1
+# ID_AV_LIGHTS=0|1
################
# Logitech
diff --git a/hwdb.d/70-software-radio.hwdb b/hwdb.d/70-software-radio.hwdb
index 3b578d464f..cbe1539861 100644
--- a/hwdb.d/70-software-radio.hwdb
+++ b/hwdb.d/70-software-radio.hwdb
@@ -19,7 +19,7 @@
# for the device.
#
# Allowed properties are:
-# ID_SOFTWARE_RADIO=1
+# ID_SOFTWARE_RADIO=0|1
################
# Nuand