All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Cc: Tom Rini <trini@konsulko.com>,
	 Michael Trimarchi <michael@amarulasolutions.com>,
	 Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Christian Marangi <ansuelsmth@gmail.com>,
	 u-boot@lists.denx.de
Subject: Re: [PATCH v5 2/2] cmd: mtd: add benchmark option to the help
Date: Fri, 29 Aug 2025 23:54:22 +0200	[thread overview]
Message-ID: <87plcd94kx.fsf@bootlin.com> (raw)
In-Reply-To: <20250829075911.2895683-3-mikhail.kshevetskiy@iopsys.eu> (Mikhail Kshevetskiy's message of "Fri, 29 Aug 2025 10:59:11 +0300")

On 29/08/2025 at 10:59:11 +03, Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu> wrote:

> The patch adds benchmark option to the help of mtd command. For the
> 'mtd write' case the help line exceed 80 characters. Ignore this issue
> as modern terminals are capable to handle more characters.
>
> The patch also formats other command to make sure all device names
> starts on the same collumn.
>
> Fixes: d246e70cf81d0 ("cmd: mtd: Enable speed benchmarking")
> Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
> ---
>  cmd/mtd.c | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/cmd/mtd.c b/cmd/mtd.c
> index 57f6c700f1d..f053dbadd78 100644
> --- a/cmd/mtd.c
> +++ b/cmd/mtd.c
> @@ -782,18 +782,18 @@ static int mtd_name_complete(int argc, char *const argv[], char last_char,
>  U_BOOT_LONGHELP(mtd,
>  	"- generic operations on memory technology devices\n\n"
>  	"mtd list\n"
> -	"mtd read[.raw][.oob]                  <name> <addr> [<off> [<size>]]\n"
> -	"mtd dump[.raw][.oob]                  <name>        [<off> [<size>]]\n"
> -	"mtd write[.raw][.oob][.dontskipff]    <name> <addr> [<off> [<size>]]\n"
> -	"mtd erase[.dontskipbad]               <name>        [<off> [<size>]]\n"
> +	"mtd read[.raw][.oob][.benchmark]                <name> <addr> [<off> [<size>]]\n"
> +	"mtd dump[.raw][.oob]                            <name>        [<off> [<size>]]\n"
> +	"mtd write[.raw][.oob][.dontskipff][.benchmark]  <name> <addr> [<off> [<size>]]\n"
> +	"mtd erase[.dontskipbad]                         <name>        [<off> [<size>]]\n"
>  	"\n"
>  	"Specific functions:\n"
> -	"mtd bad                               <name>\n"
> +	"mtd bad                                         <name>\n"
>  #if CONFIG_IS_ENABLED(CMD_MTD_OTP)
> -	"mtd otpread                           <name> [u|f] <off> <size>\n"
> -	"mtd otpwrite                          <name> <off> <hex string>\n"
> -	"mtd otplock                           <name> <off> <size>\n"
> -	"mtd otpinfo                           <name> [u|f]\n"
> +	"mtd otpread                                     <name> [u|f] <off> <size>\n"
> +	"mtd otpwrite                                    <name> <off> <hex string>\n"
> +	"mtd otplock                                     <name> <off> <size>\n"
> +	"mtd otpinfo                                     <name> [u|f]\n"
>  #endif
>  	"\n"
>  	"With:\n"

I'll let the decision to other U-Boot reviewers, but I don't know if
that is relevant to align all the parameters to the longest line.

Either ways, I'm fine,

Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>

Thanks,
Miquèl

      reply	other threads:[~2025-08-29 22:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-25 23:48 [PATCH] cmd: mtd: fix speed measurement in the speed benchmark Mikhail Kshevetskiy
2025-08-26 14:23 ` Miquel Raynal
2025-08-26 14:32   ` Michael Nazzareno Trimarchi
2025-08-26 14:35     ` Mikhail Kshevetskiy
2025-08-26 14:33   ` Mikhail Kshevetskiy
2025-08-26 14:59     ` Miquel Raynal
2025-08-26 19:21       ` [PATCH v2] " Mikhail Kshevetskiy
2025-08-28  9:45         ` Miquel Raynal
2025-08-29  7:48           ` [PATCH v3 0/2] cmd: mtd: fix benchmarking Mikhail Kshevetskiy
2025-08-29  7:48             ` [PATCH v3 1/2] cmd: mtd: fix speed measurement in the speed benchmark Mikhail Kshevetskiy
2025-08-29  7:48             ` [PATCH v3 2/2] cmd: mtd: add benchmark option to the help Mikhail Kshevetskiy
2025-08-29  7:55           ` [PATCH v4 0/2] cmd: mtd: fix benchmarking Mikhail Kshevetskiy
2025-08-29  7:55             ` [PATCH v4 1/2] Prepare v2025.10-rc3 Mikhail Kshevetskiy
2025-08-29  7:55             ` [PATCH v4 2/2] cmd: mtd: fix speed measurement in the speed benchmark Mikhail Kshevetskiy
2025-08-29  7:59           ` [PATCH v5 0/2] cmd: mtd: fix benchmarking Mikhail Kshevetskiy
2025-08-29  7:59             ` [PATCH v5 1/2] cmd: mtd: fix speed measurement in the speed benchmark Mikhail Kshevetskiy
2025-08-29  7:59             ` [PATCH v5 2/2] cmd: mtd: add benchmark option to the help Mikhail Kshevetskiy
2025-08-29 21:54               ` Miquel Raynal [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87plcd94kx.fsf@bootlin.com \
    --to=miquel.raynal@bootlin.com \
    --cc=ansuelsmth@gmail.com \
    --cc=michael@amarulasolutions.com \
    --cc=mikhail.kshevetskiy@iopsys.eu \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.