* [PATCH] firmware: zynqmp: use literal blocks for commands
@ 2026-09-14 6:06 Randy Dunlap
2026-09-15 18:56 ` Jonathan Corbet
0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2026-09-14 6:06 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, Michal Simek, Ronak Jain, linux-arm-kernel,
Greg Kroah-Hartman, Jonathan Corbet, Shuah Khan, linux-doc
Use literal blocks for 'cat' and 'echo' commands to separate them from
the surrounding text. Otherwise the lines run together, without any
clear break before or after the commands.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Michal Simek <michal.simek@amd.com>
Cc: Ronak Jain <ronak.jain@amd.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: linux-doc@vger.kernel.org
Documentation/ABI/stable/sysfs-driver-firmware-zynqmp | 70 +++++++---
1 file changed, 50 insertions(+), 20 deletions(-)
--- linux-next-20260911.orig/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp
+++ linux-next-20260911/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp
@@ -141,32 +141,44 @@ Description:
Usage:
- Select over temperature config ID to enable/disable feature
+ Select over temperature config ID to enable/disable feature::
+
# echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
- Check over temperature config ID is selected or not
+ Check over temperature config ID is selected or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
+
The expected result is 1.
- Select over temperature config ID to configure OT limit
+ Select over temperature config ID to configure OT limit::
+
# echo 2 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
- Check over temperature config ID is selected or not
+ Check over temperature config ID is selected or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
+
The expected result is 2.
- Select external watchdog config ID to enable/disable feature
+ Select external watchdog config ID to enable/disable feature::
+
# echo 3 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
- Check external watchdog config ID is selected or not
+ Check external watchdog config ID is selected or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
+
The expected result is 3.
- Select external watchdog config ID to configure time interval
+ Select external watchdog config ID to configure time interval::
+
# echo 4 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
- Check external watchdog config ID is selected or not
+ Check external watchdog config ID is selected or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
+
The expected result is 4.
Users: Xilinx
@@ -205,52 +217,70 @@ Description:
Usage:
- Enable over temperature feature
+ Enable over temperature feature::
+
# echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
# echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
- Check whether the over temperature feature is enabled or not
+ Check whether the over temperature feature is enabled or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
+
The expected result is 1.
- Disable over temperature feature
+ Disable over temperature feature::
+
# echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
# echo 0 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
- Check whether the over temperature feature is disabled or not
+ Check whether the over temperature feature is disabled or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
+
The expected result is 0.
- Configure over temperature limit to 50 Degree Celsius
+ Configure over temperature limit to 50 Degree Celsius::
+
# echo 2 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
# echo 50 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
- Check whether the over temperature limit is configured or not
+ Check whether the over temperature limit is configured or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
+
The expected result is 50.
- Enable external watchdog feature
+ Enable external watchdog feature::
+
# echo 3 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
# echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
- Check whether the external watchdog feature is enabled or not
+ Check whether the external watchdog feature is enabled or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
+
The expected result is 1.
- Disable external watchdog feature
+ Disable external watchdog feature::
+
# echo 3 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
# echo 0 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
- Check whether the external watchdog feature is disabled or not
+ Check whether the external watchdog feature is disabled or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
+
The expected result is 0.
- Configure external watchdog timer interval to 500ms
+ Configure external watchdog timer interval to 500ms::
+
# echo 4 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
# echo 500 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
- Check whether the external watchdog timer interval is configured or not
+ Check whether the external watchdog timer interval is configured or not::
+
# cat /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_value
+
The expected result is 500.
Users: Xilinx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] firmware: zynqmp: use literal blocks for commands
2026-09-14 6:06 [PATCH] firmware: zynqmp: use literal blocks for commands Randy Dunlap
@ 2026-09-15 18:56 ` Jonathan Corbet
2026-09-15 19:06 ` Randy Dunlap
0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Corbet @ 2026-09-15 18:56 UTC (permalink / raw)
To: Randy Dunlap, linux-kernel
Cc: Randy Dunlap, Michal Simek, Ronak Jain, linux-arm-kernel,
Greg Kroah-Hartman, Shuah Khan, linux-doc
Randy Dunlap <rdunlap@infradead.org> writes:
> Use literal blocks for 'cat' and 'echo' commands to separate them from
> the surrounding text. Otherwise the lines run together, without any
> clear break before or after the commands.
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> ---
> Cc: Michal Simek <michal.simek@amd.com>
> Cc: Ronak Jain <ronak.jain@amd.com>
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: Shuah Khan <skhan@linuxfoundation.org>
> Cc: linux-doc@vger.kernel.org
>
> Documentation/ABI/stable/sysfs-driver-firmware-zynqmp | 70 +++++++---
> 1 file changed, 50 insertions(+), 20 deletions(-)
>
> --- linux-next-20260911.orig/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp
> +++ linux-next-20260911/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp
> @@ -141,32 +141,44 @@ Description:
>
> Usage:
>
> - Select over temperature config ID to enable/disable feature
> + Select over temperature config ID to enable/disable feature::
> +
> # echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
I was sure that this wouldn't work, since the literal block is not
indented relative to the containing text. Sphinx does the right thing,
though... so applied, thanks,
jon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] firmware: zynqmp: use literal blocks for commands
2026-09-15 18:56 ` Jonathan Corbet
@ 2026-09-15 19:06 ` Randy Dunlap
2026-09-15 19:50 ` Jonathan Corbet
0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2026-09-15 19:06 UTC (permalink / raw)
To: Jonathan Corbet, linux-kernel
Cc: Michal Simek, Ronak Jain, linux-arm-kernel, Greg Kroah-Hartman,
Shuah Khan, linux-doc
On 9/15/26 11:56 AM, Jonathan Corbet wrote:
> Randy Dunlap <rdunlap@infradead.org> writes:
>
>> Use literal blocks for 'cat' and 'echo' commands to separate them from
>> the surrounding text. Otherwise the lines run together, without any
>> clear break before or after the commands.
>>
>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
>> ---
>> Cc: Michal Simek <michal.simek@amd.com>
>> Cc: Ronak Jain <ronak.jain@amd.com>
>> Cc: linux-arm-kernel@lists.infradead.org
>> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>> Cc: Jonathan Corbet <corbet@lwn.net>
>> Cc: Shuah Khan <skhan@linuxfoundation.org>
>> Cc: linux-doc@vger.kernel.org
>>
>> Documentation/ABI/stable/sysfs-driver-firmware-zynqmp | 70 +++++++---
>> 1 file changed, 50 insertions(+), 20 deletions(-)
>>
>> --- linux-next-20260911.orig/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp
>> +++ linux-next-20260911/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp
>> @@ -141,32 +141,44 @@ Description:
>>
>> Usage:
>>
>> - Select over temperature config ID to enable/disable feature
>> + Select over temperature config ID to enable/disable feature::
>> +
>> # echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
>
> I was sure that this wouldn't work, since the literal block is not
> indented relative to the containing text. Sphinx does the right thing,
> though... so applied, thanks,
Yeah, I did test it and looked at the output. :)
--
~Randy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] firmware: zynqmp: use literal blocks for commands
2026-09-15 19:06 ` Randy Dunlap
@ 2026-09-15 19:50 ` Jonathan Corbet
0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Corbet @ 2026-09-15 19:50 UTC (permalink / raw)
To: Randy Dunlap, linux-kernel
Cc: Michal Simek, Ronak Jain, linux-arm-kernel, Greg Kroah-Hartman,
Shuah Khan, linux-doc
Randy Dunlap <rdunlap@infradead.org> writes:
> On 9/15/26 11:56 AM, Jonathan Corbet wrote:
>> Randy Dunlap <rdunlap@infradead.org> writes:
>>
>>> Use literal blocks for 'cat' and 'echo' commands to separate them from
>>> the surrounding text. Otherwise the lines run together, without any
>>> clear break before or after the commands.
>>>
>>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
>>> ---
>>> Cc: Michal Simek <michal.simek@amd.com>
>>> Cc: Ronak Jain <ronak.jain@amd.com>
>>> Cc: linux-arm-kernel@lists.infradead.org
>>> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>>> Cc: Jonathan Corbet <corbet@lwn.net>
>>> Cc: Shuah Khan <skhan@linuxfoundation.org>
>>> Cc: linux-doc@vger.kernel.org
>>>
>>> Documentation/ABI/stable/sysfs-driver-firmware-zynqmp | 70 +++++++---
>>> 1 file changed, 50 insertions(+), 20 deletions(-)
>>>
>>> --- linux-next-20260911.orig/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp
>>> +++ linux-next-20260911/Documentation/ABI/stable/sysfs-driver-firmware-zynqmp
>>> @@ -141,32 +141,44 @@ Description:
>>>
>>> Usage:
>>>
>>> - Select over temperature config ID to enable/disable feature
>>> + Select over temperature config ID to enable/disable feature::
>>> +
>>> # echo 1 > /sys/devices/platform/firmware\:zynqmp-firmware/feature_config_id
>>
>> I was sure that this wouldn't work, since the literal block is not
>> indented relative to the containing text. Sphinx does the right thing,
>> though... so applied, thanks,
>
> Yeah, I did test it and looked at the output. :)
Heh...it's nice to know that at least one person does that...:)
jon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-09-15 19:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-14 6:06 [PATCH] firmware: zynqmp: use literal blocks for commands Randy Dunlap
2026-09-15 18:56 ` Jonathan Corbet
2026-09-15 19:06 ` Randy Dunlap
2026-09-15 19:50 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®