docs: gpio: mockup: Fix parameter name and missing entry
Subsystems (2)
cover docs: gpio: mockup: Fix parameter name and missing entry
Hei hei,
while experimenting with the gpio-mockup driver, I found minor flaws in the documentation, addressed in the three patches of this series.
Greets
Alex
Alexander Dahl (3):
docs: gpio: mockup: Fix parameter name
docs: kernel-parameters: Move gpio-mockup for alphabetic order
docs: kernel-parameters: Add gpio_mockup_named_lines
Documentation/admin-guide/gpio/gpio-mockup.rst | 2 +- Documentation/admin-guide/kernel-parameters.txt | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-)
base-commit: a5e13c6df0e41702d2b2c77c8ad41677ebb065b3
Signature · 1 line
2.20.1
PATCH 1/3 docs: gpio: mockup: Fix parameter name
Module probing with the parameter documented yielded this in kernel log:
gpio_mockup: unknown parameter 'gpio_named_lines' ignored
The parameter documented did not match the parameter actually implemented with commit 8a68ea00a62e ("gpio: mockup: implement naming the lines") long before introducing the documentation.
--- Documentation/admin-guide/gpio/gpio-mockup.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/admin-guide/gpio/gpio-mockup.rst +1 -1
@@ -27,7 +27,7 @@ module. the second 16 and the third 4. The base GPIO for the third chip is set to 405 while for two first chips it will be assigned automatically. - gpio_named_lines + gpio_mockup_named_lines This parameter doesn't take any arguments. It lets the driver know that GPIO lines exposed by it should be named.
Signature · 1 line
2.20.1
Re: [PATCH 1/3] docs: gpio: mockup: Fix parameter name
Quoted 29 lines · Alexander Dahl
Module probing with the parameter documented yielded this in kernel log:
gpio_mockup: unknown parameter 'gpio_named_lines' ignoredThe parameter documented did not match the parameter actually implemented with commit
8a68ea00a62e("gpio: mockup: implement naming the lines") long before introducing the documentation.Fixes commit 2fd1abe99e5f ("Documentation: gpio: add documentation for gpio-mockup")Signed-off-by Alexander Dahl <[email protected]>--- Documentation/admin-guide/gpio/gpio-mockup.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/admin-guide/gpio/gpio-mockup.rst +1
-2@@ -27,7 +27,7 @@ module. the second 16 and the third 4. The base GPIO for the third chip is set to 405 while for two first chips it will be assigned automatically. - gpio_named_lines + gpio_mockup_named_lines This parameter doesn't take any arguments. It lets the driver know that GPIO lines exposed by it should be named. --
Quoted 2 lines
2.20.1
This was already fixed by Andy.
Bartosz
Re: [PATCH 1/3] docs: gpio: mockup: Fix parameter name
In reply to Alexander DahlQuoted 10 lines · Alexander Dahl
Module probing with the parameter documented yielded this in kernel log:
gpio_mockup: unknown parameter 'gpio_named_lines' ignoredThe parameter documented did not match the parameter actually implemented with commit
8a68ea00a62e("gpio: mockup: implement naming the lines") long before introducing the documentation.Fixes commit 2fd1abe99e5f ("Documentation: gpio: add documentation for gpio-mockup")
Alexander, in the entire series you are using the wrong format for the Fixes tag.
I highly recommend to add in your .gitconfig file an alias:
one = show -s --pretty='format:%h (\"%s\")'
git one <commit ID> will give you proper value to refer to the commit in question.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Re: [PATCH 1/3] docs: gpio: mockup: Fix parameter name
Hello Andy,
Am Wed, Mar 31, 2021 at 03:27:05PM +0300 schrieb Andy Shevchenko:
Quoted 10 lines · Alexander Dahl
Quoted 9 lines
Module probing with the parameter documented yielded this in kernel log:
gpio_mockup: unknown parameter 'gpio_named_lines' ignoredThe parameter documented did not match the parameter actually implemented with commit
8a68ea00a62e("gpio: mockup: implement naming the lines") long before introducing the documentation.
Quoted 6 lines
Quoted 1 line
Fixes commit 2fd1abe99e5f ("Documentation: gpio: add documentation for gpio-mockup")Alexander, in the entire series you are using the wrong format for the Fixes tag.
I highly recommend to add in your .gitconfig file an alias:one = show -s --pretty='format:%h (\"%s\")'
You're right. Sorry, I messed things up. I first had that line without the additional "commit", and added it because I thought checkpatch complained (which it probably did not).
The actual format is documented of course:
https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes
I actually have a slightly different setting for pretty.fixes in my ~/.gitconfig for other demands. I'll go and make that project dependent now.
Thanks for pointing this out.
Greets
Alex
Quoted 7 lines
git one <commit ID>will give you proper value to refer to the commit in question.Signature · 2 lines
With Best Regards, Andy Shevchenko
Re: [PATCH 1/3] docs: gpio: mockup: Fix parameter name
Quoted 29 lines · Alexander Dahl
Hello Andy,
Am Wed, Mar 31, 2021 at 03:27:05PM +0300 schrieb Andy Shevchenko:
Quoted 10 lines · Alexander Dahl
Quoted 9 lines
Module probing with the parameter documented yielded this in kernel log:
gpio_mockup: unknown parameter 'gpio_named_lines' ignoredThe parameter documented did not match the parameter actually implemented with commit
8a68ea00a62e("gpio: mockup: implement naming the lines") long before introducing the documentation.Quoted 6 lines
Quoted 1 line
Fixes commit 2fd1abe99e5f ("Documentation: gpio: add documentation for gpio-mockup")Alexander, in the entire series you are using the wrong format for the Fixes tag.
I highly recommend to add in your .gitconfig file an alias:one = show -s --pretty='format:%h (\"%s\")'You're right. Sorry, I messed things up. I first had that line without the additional "commit", and added it because I thought checkpatch complained (which it probably did not).
The actual format is documented of course:
https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes
Quoted 16 lines
I actually have a slightly different setting for pretty.fixes in my ~/.gitconfig for other demands. I'll go and make that project dependent now.
Thanks for pointing this out.
Greets
AlexQuoted 7 lines
git one <commit ID>will give you proper value to refer to the commit in question.--
With Best Regards,
Andy Shevchenko
FYI no need to resend, I fixed it in my tree.
Bart
PATCH 2/3 docs: kernel-parameters: Move gpio-mockup for alphabetic order
In reply to Alexander Dahl--- Documentation/admin-guide/kernel-parameters.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/admin-guide/kernel-parameters.txt +4 -4
@@ -1461,6 +1461,10 @@ Don't use this when you are not running on the android emulator + gpio-mockup.gpio_mockup_ranges + [HW] Sets the ranges of gpiochip of for this device. + Format: <start1>,<end1>,<start2>,<end2>... + gpt [EFI] Forces disk with valid GPT signature but invalid Protective MBR to be treated as GPT. If the primary GPT is corrupted, it enables the backup/alternate
@@ -1484,10 +1488,6 @@ Format: <unsigned int> such that (rxsize & ~0x1fffc0) == 0. Default: 1024 - gpio-mockup.gpio_mockup_ranges - [HW] Sets the ranges of gpiochip of for this device. - Format: <start1>,<end1>,<start2>,<end2>... - hardlockup_all_cpu_backtrace= [KNL] Should the hard-lockup detector generate backtraces on all cpus.
Signature · 1 line
2.20.1
Bartosz Golaszewski
AppliedRe: [PATCH 2/3] docs: kernel-parameters: Move gpio-mockup for alphabetic order
Quoted 4 lines · Alexander Dahl
Fixes commit 0f98dd1b27d2 ("gpio/mockup: add virtual gpio device")Signed-off-by Alexander Dahl <[email protected]>---
Applied, thanks!
Bartosz
PATCH 3/3 docs: kernel-parameters: Add gpio_mockup_named_lines
In reply to Alexander DahlMissing since introduced in the driver.
--- Documentation/admin-guide/kernel-parameters.txt | 2 ++ 1 file changed, 2 insertions(+)
Documentation/admin-guide/kernel-parameters.txt +2 -0
@@ -1464,6 +1464,8 @@ gpio-mockup.gpio_mockup_ranges [HW] Sets the ranges of gpiochip of for this device. Format: <start1>,<end1>,<start2>,<end2>... + gpio-mockup.gpio_mockup_named_lines + [HW] Let the driver know GPIO lines should be named. gpt [EFI] Forces disk with valid GPT signature but invalid Protective MBR to be treated as GPT. If the
Signature · 1 line
2.20.1
Bartosz Golaszewski
AppliedRe: [PATCH 3/3] docs: kernel-parameters: Add gpio_mockup_named_lines
Quoted 6 lines · Alexander Dahl
Missing since introduced in the driver.
Fixes commit 8a68ea00a62e ("gpio: mockup: implement naming the lines")Signed-off-by Alexander Dahl <[email protected]>---
Applied, thanks!
Bartosz