Skip to contentSkip to conversation

docs: ABI: sysfs-class-firmware-attributes: use literal blocks for console commands

PATCH Applied Randy Dunlap 3 participants 3 messages Sep 23 – Sep 26

Subsystems (4)
lore
Share & tools
lore

Randy Dunlap

author reviewer
#0 lore raw

PATCH 1/1 docs: ABI: sysfs-class-firmware-attributes: use literal blocks for console commands

Use a literal block for console I/O so that the lines aren't merged together in the produced output.

Also correct some punctuation.

---
Cc: Mark Pearson <[email protected]>
Cc: Hans de Goede <[email protected]>
Cc: Ilpo Järvinen <[email protected]>
Cc: [email protected]
Cc: Jonathan Corbet <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: [email protected]

 Documentation/ABI/testing/sysfs-class-firmware-attributes |   21 +++++-----
 1 file changed, 12 insertions(+), 9 deletions(-)
Documentation/ABI/testing/sysfs-class-firmware-attributes +12 -9
@@ -397,22 +397,25 @@ Description:
 		unlimited attributes.
 
 		Read the attribute to check what save mode is enabled (single or bulk).
-		E.g:
-		# cat /sys/class/firmware-attributes/thinklmi/attributes/save_settings
-		single
+		E.g::
+
+		  # cat /sys/class/firmware-attributes/thinklmi/attributes/save_settings
+		  single
 
 		Write the attribute with 'bulk' to enable bulk save mode.
-		Write the attribute with 'single' to enable saving, after every attribute set.
+		Write the attribute with 'single' to enable saving after every attribute set.
 		The default setting is single mode.
-		E.g:
-		# echo bulk > /sys/class/firmware-attributes/thinklmi/attributes/save_settings
+		E.g::
+
+		  # echo bulk > /sys/class/firmware-attributes/thinklmi/attributes/save_settings
 
 		When in bulk mode write 'save' to trigger a save of all currently modified attributes.
-		Note, once a save has been triggered, in bulk mode, attributes can no longer be set and
+		Note, once a save has been triggered in bulk mode, attributes can no longer be set and
 		will return a permissions error. This is to prevent users hitting the 48+ save limitation
 		(which requires entering the BIOS to clear the error condition)
-		E.g:
-		# echo save > /sys/class/firmware-attributes/thinklmi/attributes/save_settings
+		E.g::
+
+		  # echo save > /sys/class/firmware-attributes/thinklmi/attributes/save_settings
 
 What:		/sys/class/firmware-attributes/*/attributes/debug_cmd
 Date:		July 2021
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 65 lines · Randy Dunlap

Use a literal block for console I/O so that the lines aren't merged together in the produced output.

Also correct some punctuation.

---
Cc: Mark Pearson <[email protected]>
Cc: Hans de Goede <[email protected]>
Cc: Ilpo Järvinen <[email protected]>
Cc: [email protected]
Cc: Jonathan Corbet <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: [email protected]

 Documentation/ABI/testing/sysfs-class-firmware-attributes |   21 +++++-----
 1 file changed, 12 insertions(+), 9 deletions(-)

---
linux-next-20260921.orig/Documentation/ABI/testing/sysfs-class-firmware-attributes
+++
linux-next-20260921/Documentation/ABI/testing/sysfs-class-firmware-attributes

Documentation/ABI/testing/sysfs-class-firmware-attributes +4 -4
@@ -397,22 +397,25 @@ Description:
 		unlimited attributes.
 
 		Read the attribute to check what save mode is enabled (single or bulk).
-		E.g:
-		# cat /sys/class/firmware-attributes/thinklmi/attributes/save_settings
-		single
+		E.g::
+
+		  # cat /sys/class/firmware-attributes/thinklmi/attributes/save_settings
+		  single
 
 		Write the attribute with 'bulk' to enable bulk save mode.
-		Write the attribute with 'single' to enable saving, after every 

attribute set.

(quoted diff) +1 -0
+		Write the attribute with 'single' to enable saving after every 

attribute set.

Documentation/ABI/testing/sysfs-class-firmware-attributes +0 -2
 		The default setting is single mode.
-		E.g:
-		# echo bulk > 

/sys/class/firmware-attributes/thinklmi/attributes/save_settings

Documentation/ABI/testing/sysfs-class-firmware-attributes +3 -0
+		E.g::
+
+		  # echo bulk > 

/sys/class/firmware-attributes/thinklmi/attributes/save_settings

When in bulk mode write 'save' to trigger a save of all currently
modified attributes.

(quoted diff) +0 -1
-		Note, once a save has been triggered, in bulk mode, attributes can 

no longer be set and

(quoted diff) +1 -0
+		Note, once a save has been triggered in bulk mode, attributes can no 

longer be set and
will return a permissions error. This is to prevent users hitting
the 48+ save limitation

Documentation/ABI/testing/sysfs-class-firmware-attributes +0 -2
 		(which requires entering the BIOS to clear the error condition)
-		E.g:
-		# echo save > 

/sys/class/firmware-attributes/thinklmi/attributes/save_settings

Documentation/ABI/testing/sysfs-class-firmware-attributes +3 -0
+		E.g::
+
+		  # echo save > 

/sys/class/firmware-attributes/thinklmi/attributes/save_settings

Quoted 2 lines

What: /sys/class/firmware-attributes/*/attributes/debug_cmd
Date: July 2021

Looks good to me

Mark

maintainer Applied
#2 lore raw
In reply to Randy Dunlap
Quoted 15 lines · Randy Dunlap

Use a literal block for console I/O so that the lines aren't merged together in the produced output.

Also correct some punctuation.

---
Cc: Mark Pearson <[email protected]>
Cc: Hans de Goede <[email protected]>
Cc: Ilpo Järvinen <[email protected]>
Cc: [email protected]
Cc: Jonathan Corbet <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: [email protected]

Quoted 2 lines
 Documentation/ABI/testing/sysfs-class-firmware-attributes |   21 +++++-----
 1 file changed, 12 insertions(+), 9 deletions(-)

Applied, thanks.

jon