mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] commands: nand: add missing parameters to help
@ 2023-03-19 15:39 Wolfram Sang
  2023-03-21  8:13 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Wolfram Sang @ 2023-03-19 15:39 UTC (permalink / raw)
  To: barebox; +Cc: Wolfram Sang

Signed-off-by: Wolfram Sang <wsa@kernel.org>
---
 commands/Kconfig | 4 +++-
 commands/nand.c  | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/commands/Kconfig b/commands/Kconfig
index 27769950d9..76dfca2dfd 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -1950,12 +1950,14 @@ config CMD_NAND
 	help
 	  NAND flash handling
 
-	  Usage: nand [-adb] NANDDEV
+	  Usage: nand [-adbgi] NANDDEV
 
 	  Options:
 		  -a		register a bad block aware device ontop of a normal NAND device
 		  -d		deregister a bad block aware device
 		  -b OFFS	mark block at OFFSet as bad
+		  -g OFFS	mark block at OFFSet as good
+		  -i		info. Show information about bad blocks
 
 config CMD_NANDTEST
 	tristate
diff --git a/commands/nand.c b/commands/nand.c
index 67e43eba30..d07444aee0 100644
--- a/commands/nand.c
+++ b/commands/nand.c
@@ -165,7 +165,7 @@ BAREBOX_CMD_HELP_END
 BAREBOX_CMD_START(nand)
 	.cmd		= do_nand,
 	BAREBOX_CMD_DESC("NAND flash handling")
-	BAREBOX_CMD_OPTS("[-adb] NANDDEV")
+	BAREBOX_CMD_OPTS("[-adbgi] NANDDEV")
 	BAREBOX_CMD_GROUP(CMD_GRP_HWMANIP)
 	BAREBOX_CMD_HELP(cmd_nand_help)
 BAREBOX_CMD_END
-- 
2.35.1




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] commands: nand: add missing parameters to help
  2023-03-19 15:39 [PATCH] commands: nand: add missing parameters to help Wolfram Sang
@ 2023-03-21  8:13 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2023-03-21  8:13 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: barebox

On Sun, Mar 19, 2023 at 04:39:31PM +0100, Wolfram Sang wrote:
> Signed-off-by: Wolfram Sang <wsa@kernel.org>
> ---
>  commands/Kconfig | 4 +++-
>  commands/nand.c  | 2 +-
>  2 files changed, 4 insertions(+), 2 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/commands/Kconfig b/commands/Kconfig
> index 27769950d9..76dfca2dfd 100644
> --- a/commands/Kconfig
> +++ b/commands/Kconfig
> @@ -1950,12 +1950,14 @@ config CMD_NAND
>  	help
>  	  NAND flash handling
>  
> -	  Usage: nand [-adb] NANDDEV
> +	  Usage: nand [-adbgi] NANDDEV
>  
>  	  Options:
>  		  -a		register a bad block aware device ontop of a normal NAND device
>  		  -d		deregister a bad block aware device
>  		  -b OFFS	mark block at OFFSet as bad
> +		  -g OFFS	mark block at OFFSet as good
> +		  -i		info. Show information about bad blocks
>  
>  config CMD_NANDTEST
>  	tristate
> diff --git a/commands/nand.c b/commands/nand.c
> index 67e43eba30..d07444aee0 100644
> --- a/commands/nand.c
> +++ b/commands/nand.c
> @@ -165,7 +165,7 @@ BAREBOX_CMD_HELP_END
>  BAREBOX_CMD_START(nand)
>  	.cmd		= do_nand,
>  	BAREBOX_CMD_DESC("NAND flash handling")
> -	BAREBOX_CMD_OPTS("[-adb] NANDDEV")
> +	BAREBOX_CMD_OPTS("[-adbgi] NANDDEV")
>  	BAREBOX_CMD_GROUP(CMD_GRP_HWMANIP)
>  	BAREBOX_CMD_HELP(cmd_nand_help)
>  BAREBOX_CMD_END
> -- 
> 2.35.1
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-21  8:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-19 15:39 [PATCH] commands: nand: add missing parameters to help Wolfram Sang
2023-03-21  8:13 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox