From: Adrian Hunter <adrian.hunter@intel.com>
To: Dmitry Antipov <dmantipov@yandex.ru>,
Andy Shevchenko <andy@kernel.org>, Ulf Hansson <ulfh@kernel.org>
Cc: Kees Cook <kees@kernel.org>, Julia Lawall <Julia.Lawall@inria.fr>,
"Nicolas Palix" <nicolas.palix@imag.fr>,
David Rhodes <david.rhodes@cirrus.com>,
Richard Fitzgerald <rf@opensource.cirrus.com>,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Edward Cree <ecree.xilinx@gmail.com>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 5/6] mmc: sdhci-of-k1: use str_fail_pass() helper
Date: Mon, 24 Aug 2026 09:41:10 +0300 [thread overview]
Message-ID: <2e31919b-a60a-42fe-80ee-b728984af75e@intel.com> (raw)
In-Reply-To: <20260820061113.4176623-5-dmantipov@yandex.ru>
On 20/08/2026 09:11, Dmitry Antipov wrote:
> In 'spacemit_sdhci_execute_tuning()', prefer 'str_fail_pass()'
> choice helper over hardcoded strings.
>
> Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
I would say it is not worth people's time, but the logic is not broken, so:
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
> ---
> drivers/mmc/host/sdhci-of-k1.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/sdhci-of-k1.c b/drivers/mmc/host/sdhci-of-k1.c
> index 37b0911e7cf2..80986c64eb83 100644
> --- a/drivers/mmc/host/sdhci-of-k1.c
> +++ b/drivers/mmc/host/sdhci-of-k1.c
> @@ -18,6 +18,7 @@
> #include <linux/reset.h>
> #include <linux/pinctrl/consumer.h>
> #include <linux/platform_device.h>
> +#include <linux/string_choices.h>
>
> #include "sdhci.h"
> #include "sdhci-pltfm.h"
> @@ -293,7 +294,7 @@ static int spacemit_sdhci_execute_tuning(struct sdhci_host *host, u32 opcode)
> ret = mmc_send_tuning(host->mmc, opcode, NULL);
>
> dev_dbg(mmc_dev(host->mmc), "RX delay %d: %s\n",
> - i, ret == 0 ? "pass" : "fail");
> + i, str_fail_pass(ret));
>
> if (ret == 0) {
> /* Test passed - extend current window */
next prev parent reply other threads:[~2026-08-24 7:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-20 6:11 [PATCH 1/6] lib/string_choices: add few more convenient choice helpers Dmitry Antipov
2026-08-20 6:11 ` [PATCH 2/6] coccinelle: add rules to match recently introduced " Dmitry Antipov
2026-08-20 6:11 ` [PATCH 3/6] ASoC: cs48l32: use str_lock_unlock() helper Dmitry Antipov
2026-08-20 6:39 ` Andy Shevchenko
2026-08-20 6:11 ` [PATCH 4/6] ice: use string choice helpers Dmitry Antipov
2026-08-20 6:43 ` Andy Shevchenko
2026-08-20 9:30 ` Przemek Kitszel
2026-08-20 6:11 ` [PATCH 5/6] mmc: sdhci-of-k1: use str_fail_pass() helper Dmitry Antipov
2026-08-20 6:44 ` Andy Shevchenko
2026-08-24 6:41 ` Adrian Hunter [this message]
2026-08-20 6:11 ` [PATCH 6/6] net: sfc: use string choice helpers Dmitry Antipov
2026-08-20 6:47 ` Andy Shevchenko
2026-08-20 6:39 ` [PATCH 1/6] lib/string_choices: add few more convenient " Andy Shevchenko
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=2e31919b-a60a-42fe-80ee-b728984af75e@intel.com \
--to=adrian.hunter@intel.com \
--cc=Julia.Lawall@inria.fr \
--cc=andy@kernel.org \
--cc=anthony.l.nguyen@intel.com \
--cc=david.rhodes@cirrus.com \
--cc=dmantipov@yandex.ru \
--cc=ecree.xilinx@gmail.com \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nicolas.palix@imag.fr \
--cc=przemyslaw.kitszel@intel.com \
--cc=rf@opensource.cirrus.com \
--cc=ulfh@kernel.org \
/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 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®