From: Yao Zi <me@ziyao.cc>
To: Eric Chung <eric.chung@riscstar.com>,
u-boot-spacemit@groups.io, u-boot@lists.u-boot-project.org
Cc: Tom Rini <trini@konsulko.com>, Tim Ouyang <tim609@andestech.com>,
Leo Liang <leo.liang@sifive.com>, Yao Zi <me@ziyao.cc>,
Wei Fu <wefu@redhat.com>, Huan Zhou <pericycle.cc@gmail.com>,
Guodong Xu <guodong@riscstar.com>,
Raymond Mao <raymond.mao@riscstar.com>,
Peng Fan <peng.fan@nxp.com>,
Jaehoon Chung <jh80.chung@samsung.com>,
Anshul Dalal <anshuld@ti.com>,
Bastien Curutchet <bastien.curutchet@bootlin.com>,
Johan Jonker <jbx6244@gmail.com>,
Sumit Garg <sumit.garg@kernel.org>, Yixun Lan <dlan@kernel.org>,
Iker Pedrosa <ikerpedrosam@gmail.com>,
Alex Elder <elder@riscstar.com>,
Andre Heider <a.heider@gmail.com>,
Trevor Gamblin <tgamblin@baylibre.com>
Subject: Re: [PATCH v12 2/7] mmc: k1: add sdhci platform driver
Date: Mon, 7 Sep 2026 08:32:07 +0000 [thread overview]
Message-ID: <ap52h-_UQz15JRVU@pie> (raw)
In-Reply-To: <20260906-m4-v12-2-89eb5a8f879d@riscstar.com>
On Sun, Sep 06, 2026 at 05:11:04PM +0800, Eric Chung wrote:
> Add SDHCI platform driver support for SpacemiT K1 SoC. This driver
> implements the necessary platform-specific operations for the SDHCI
> controller, enabling MMC/SD card functionality on K1-based platforms.
>
> Signed-off-by: Eric Chung <eric.chung@riscstar.com>
>
> ---
> v9:
> - Disable CMD18 (multiple-block read) for SD cards in SPL.
> v6:
> - Remove ".data = 0" in spacemit_sdhci_ids[].
> v5:
> - Remove MMC_CAP_CMD23 as the CMD23 support is now a separate series.
> - Use tabs for macro definition alignment.
> - Use read_poll_timeout().
> - Set pinctrl state based on selected timing mode.
> - Add the definition of SDHC_DLL_REG1_HS400_VAL.
> - Remove the condition based on quirks.
> v4:
> - Add bulk release operations on reset and clock.
> v3:
> - Enable CMD23 in capability.
> v2:
> - Enable ADMA mode support.
> - Use CMD23 for multi-block read/write.
> - Move ASR/AIB register into pinctrl driver.
> - Correct pinctrl state from "fast" to "uhs".
> - Migrate tuning support from the spacemit linux driver.
> ---
> drivers/mmc/Kconfig | 7 +
> drivers/mmc/Makefile | 1 +
> drivers/mmc/spacemit_sdhci.c | 684 +++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 692 insertions(+)
...
> diff --git a/drivers/mmc/spacemit_sdhci.c b/drivers/mmc/spacemit_sdhci.c
> new file mode 100644
> index 000000000000..4731c9ca0832
> --- /dev/null
> +++ b/drivers/mmc/spacemit_sdhci.c
> @@ -0,0 +1,684 @@
...
> +#define SPACEMIT_RX_DLINE_REG 9
There's an on-going series containing fixes for SpacemiT MMC controllers
in Linux upstream, and I noticed this patch carries same issues for the
delay granularity[1] and minimum RX tuning window[2]. Should it be fixed?
...
> +static int spacemit_sdhci_execute_tuning(struct mmc *mmc, u8 opcode)
> +{
...
> + if (max_pass_len < 3) {
> + log_err("Tuning failed: no stable window found\n");
> + return -EIO;
> + }
and here.
Best regards,
Yao Zi
[1]: https://lore.kernel.org/spacemit/20260902-07-k3-sdhci-fix-v1-5-b15c5d0f64fd@kernel.org/
[2]: https://lore.kernel.org/spacemit/20260902-07-k3-sdhci-fix-v1-6-b15c5d0f64fd@kernel.org/
next prev parent reply other threads:[~2026-09-07 8:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-06 9:11 [PATCH v12 0/7] spacemit mmc driver Eric Chung
2026-09-06 9:11 ` [PATCH v12 1/7] spacemit: k1: select boot device via config registers Eric Chung
2026-09-06 9:11 ` [PATCH v12 2/7] mmc: k1: add sdhci platform driver Eric Chung
2026-09-07 8:32 ` Yao Zi [this message]
2026-09-07 16:27 ` Eric Chung
2026-09-08 21:24 ` Yixun Lan
2026-09-06 9:11 ` [PATCH v12 3/7] dts: k1: enable mmc devices in SPL Eric Chung
2026-09-06 9:11 ` [PATCH v12 4/7] configs: k1: enable SD and eMMC support Eric Chung
2026-09-06 9:11 ` [PATCH v12 5/7] MAINTAINER: update Spacemit K1 entry Eric Chung
2026-09-06 9:11 ` [PATCH v12 6/7] doc: spacemit: flash on K1 SoC based boards Eric Chung
2026-09-07 8:50 ` Yao Zi
2026-09-07 16:31 ` Eric Chung
2026-09-07 17:59 ` Yao Zi
2026-09-08 12:52 ` Yixun Lan
2026-09-06 9:11 ` [PATCH v12 7/7] spacemit: k1: fix product name detection and DTB matching in SPL Eric Chung
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=ap52h-_UQz15JRVU@pie \
--to=me@ziyao.cc \
--cc=a.heider@gmail.com \
--cc=anshuld@ti.com \
--cc=bastien.curutchet@bootlin.com \
--cc=dlan@kernel.org \
--cc=elder@riscstar.com \
--cc=eric.chung@riscstar.com \
--cc=guodong@riscstar.com \
--cc=ikerpedrosam@gmail.com \
--cc=jbx6244@gmail.com \
--cc=jh80.chung@samsung.com \
--cc=leo.liang@sifive.com \
--cc=peng.fan@nxp.com \
--cc=pericycle.cc@gmail.com \
--cc=raymond.mao@riscstar.com \
--cc=sumit.garg@kernel.org \
--cc=tgamblin@baylibre.com \
--cc=tim609@andestech.com \
--cc=trini@konsulko.com \
--cc=u-boot-spacemit@groups.io \
--cc=u-boot@lists.u-boot-project.org \
--cc=wefu@redhat.com \
/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.