From: Adrian Hunter <adrian.hunter@intel.com>
To: Dan Carpenter <dan.carpenter@linaro.org>, Yixun Lan <dlan@gentoo.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>, <linux-mmc@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <linux-riscv@lists.infradead.org>,
<spacemit@lists.linux.dev>, <kernel-janitors@vger.kernel.org>
Subject: Re: [PATCH next] mmc: sdhci-of-k1: Fix error code in probe()
Date: Wed, 28 May 2025 14:42:25 +0300 [thread overview]
Message-ID: <31b0b210-de34-4816-b7bc-2f7ddb7fa375@intel.com> (raw)
In-Reply-To: <aDVTtQdXVtRhxOrb@stanley.mountain>
On 27/05/2025 08:55, Dan Carpenter wrote:
> If spacemit_sdhci_get_clocks() fails, then propagate the error code.
> Don't return success.
>
> Fixes: e5502d15b0f3 ("mmc: sdhci-of-k1: add support for SpacemiT K1 SoC")
> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-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 6880d3e9ab62..2e5da7c5834c 100644
> --- a/drivers/mmc/host/sdhci-of-k1.c
> +++ b/drivers/mmc/host/sdhci-of-k1.c
> @@ -276,7 +276,8 @@ static int spacemit_sdhci_probe(struct platform_device *pdev)
>
> host->mmc->caps |= MMC_CAP_NEED_RSP_BUSY;
>
> - if (spacemit_sdhci_get_clocks(dev, pltfm_host))
> + ret = spacemit_sdhci_get_clocks(dev, pltfm_host);
> + if (ret)
> goto err_pltfm;
>
> ret = sdhci_add_host(host);
next prev parent reply other threads:[~2025-05-28 11:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-27 5:55 [PATCH next] mmc: sdhci-of-k1: Fix error code in probe() Dan Carpenter
2025-05-27 6:58 ` Yixun Lan
2025-05-28 11:42 ` Adrian Hunter [this message]
2025-06-09 14:25 ` Ulf Hansson
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=31b0b210-de34-4816-b7bc-2f7ddb7fa375@intel.com \
--to=adrian.hunter@intel.com \
--cc=dan.carpenter@linaro.org \
--cc=dlan@gentoo.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=spacemit@lists.linux.dev \
--cc=ulf.hansson@linaro.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