From: Adrian Hunter <adrian.hunter@intel.com>
To: Yixun Lan <dlan@kernel.org>, Ulf Hansson <ulfh@kernel.org>
Cc: Long Wan <long.wan@linux.spacemit.com>,
Troy Mitchell <troy.mitchell@linux.spacemit.com>,
Hung-Chun Tseng <alan.tseng.cs@gmail.com>,
Iker Pedrosa <ikerpedrosam@gmail.com>,
Anand Moon <linux.amoon@gmail.com>,
Trevor Gamblin <tgamblin@baylibre.com>,
"Vincent Legoll" <legoll@online.fr>, <linux-mmc@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <linux-riscv@lists.infradead.org>,
<spacemit@lists.linux.dev>
Subject: Re: [PATCH RESEND v2 2/8] mmc: sdhci-of-k1: Handle clock probe deferral
Date: Thu, 3 Dec 2026 11:44:17 +0200 [thread overview]
Message-ID: <43fdd0f1-7a6d-4d2b-b8bc-2621319909c5@intel.com> (raw)
In-Reply-To: <20261201-07-k3-sdhci-fix-v2-2-6645f4fe6eb1@kernel.org>
On 01/12/2026 12:54, Yixun Lan wrote:
> Propagate the error code when clock subsystem isn't ready, so
> it will fallback to proper probe deferral mechanism.
>
> Fixes: e5502d15b0f3 ("mmc: sdhci-of-k1: add support for SpacemiT K1 SoC")
> Signed-off-by: Yixun Lan <dlan@kernel.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
> ---
> drivers/mmc/host/sdhci-of-k1.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci-of-k1.c b/drivers/mmc/host/sdhci-of-k1.c
> index 9596d79fa97f..68b9958f8683 100644
> --- a/drivers/mmc/host/sdhci-of-k1.c
> +++ b/drivers/mmc/host/sdhci-of-k1.c
> @@ -445,11 +445,11 @@ static inline int spacemit_sdhci_get_clocks(struct device *dev,
>
> sdhst->clk_core = devm_clk_get_enabled(dev, "core");
> if (IS_ERR(sdhst->clk_core))
> - return -EINVAL;
> + return PTR_ERR(sdhst->clk_core);
>
> sdhst->clk_io = devm_clk_get_enabled(dev, "io");
> if (IS_ERR(sdhst->clk_io))
> - return -EINVAL;
> + return PTR_ERR(sdhst->clk_io);
>
> pltfm_host->clk = sdhst->clk_io;
>
>
next prev parent reply other threads:[~2026-12-03 9:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 10:54 [PATCH RESEND v2 0/8] mmc: spacemit: Improve clock and tuning logic Yixun Lan
2026-12-01 10:54 ` [PATCH RESEND v2 1/8] mmc: sdhci-of-k1: No pinctrl state switching Yixun Lan
2026-12-03 9:43 ` Adrian Hunter
2026-12-01 10:54 ` [PATCH RESEND v2 2/8] mmc: sdhci-of-k1: Handle clock probe deferral Yixun Lan
2026-12-03 9:44 ` Adrian Hunter [this message]
2026-12-01 10:54 ` [PATCH RESEND v2 3/8] mmc: sdhci-of-k1: Drop duplicated voltage settings Yixun Lan
2026-12-03 11:23 ` Adrian Hunter
2026-12-01 10:54 ` [PATCH RESEND v2 4/8] mmc: sdhci-of-k1: Improve power control Yixun Lan
2026-12-03 14:03 ` Adrian Hunter
2026-12-01 10:54 ` [PATCH RESEND v2 5/8] mmc: sdhci-of-k1: Configure PHY mode Yixun Lan
2026-12-01 10:54 ` [PATCH RESEND v2 6/8] mmc: sdhci-of-k1: Use finest delay granularity for RX tuning Yixun Lan
2026-12-01 10:54 ` [PATCH RESEND v2 7/8] mmc: sdhci-of-k1: Improve RX tuning window Yixun Lan
2026-12-01 10:54 ` [PATCH RESEND v2 8/8] mmc: sdhci-of-k1: Implement SD clock gating for voltage switch Yixun Lan
2026-12-01 18:10 ` [PATCH RESEND v2 0/8] mmc: spacemit: Improve clock and tuning logic Frédéric Mahé
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=43fdd0f1-7a6d-4d2b-b8bc-2621319909c5@intel.com \
--to=adrian.hunter@intel.com \
--cc=alan.tseng.cs@gmail.com \
--cc=dlan@kernel.org \
--cc=ikerpedrosam@gmail.com \
--cc=legoll@online.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux.amoon@gmail.com \
--cc=long.wan@linux.spacemit.com \
--cc=spacemit@lists.linux.dev \
--cc=tgamblin@baylibre.com \
--cc=troy.mitchell@linux.spacemit.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®