U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yixun Lan <dlan@kernel.org>
To: Dave Klotz <DaveWK225@protonmail.com>
Cc: "Kathpalia, Tanmay" <tanmay.kathpalia@altera.com>,
	Zixian Zeng <sycamoremoon376@gmail.com>,
	Eric Chung <eric.chung@riscstar.com>, Peng Fan <peng.fan@nxp.com>,
	u-boot@lists.u-boot-project.org,
	Jaehoon Chung <jh80.chung@samsung.com>,
	Tom Rini <trini@konsulko.com>,
	u-boot-spacemit@groups.io, Anand Moon <linux.amoon@gmail.com>,
	Hung-Chun Tseng <alan.tseng.cs@gmail.com>,
	Tanmay Kathpalia <tanmay.kathpalia@gmail.com>
Subject: Re: [PATCH v2 2/3] mmc: k1: let the SPL read SD cards more than one block at a time
Date: Wed, 14 Oct 2026 21:28:35 +0000	[thread overview]
Message-ID: <20261014212835-GKM26088@kernel.org> (raw)
In-Reply-To: <20261014T154006-0400.uboot-k1-mmc-v2-handoff.DaveWK225@protonmail.com>

Hi Kathpalia, Dave,

On 19:59 Wed 14 Oct     , Dave Klotz wrote:
> On 12-10-2026 19:30, Kathpalia, Tanmay wrote:
> > Dave, I hope you are aligned with the changes discussed and tested.
> > Could you please post a new version incorporating them?
> 
> Hi Tanmay,
> 
> Sorry for the slow reply. I'm moving my K1 boards to a different boot
> chain, oreboot plus EDK2, so I won't be respinning this series. Thanks
> to you, Zixian, Yixun and Anand for the testing and the careful review.
> 
> Where things stand, for whoever picks it up:
> 
> - 1/3: Yixun suggested a sane default max-frequency when the DT has
I changed my mind of the idea to set a default in driver code level..

>   none, rather than trusting what an earlier stage left behind, and
Still don't like "what an earlier stage left", and expect to avoid

>   asked for a clearer explanation than "happens to return 0".
>   Hung-Chun's RFC, "[RFC PATCH 0/2] mmc: k1: do not require
>   max-frequency in the device tree", covers the same ground.
> 
Spent a few more time looking into this, and to understand the idea
of why setting max-frequency, turn out its goal is trying to set a
particular clock parent/frequency for the io clock.

I'd suggest we try to see if able to go with setting DT property,
 assigned-clock-parents or assigned-clock-rates
the advantage is it will also work on Linux kernel side

I've actually tested assigned-clock-rates on kernel, it worked well

If above idea is doable, then I'd suggest to drop patch 1/3 for now,
"mmc: k1: handle a missing max-frequency and clk_set_rate()'s return value"
leave the driver as current state which will keep using "max-frequency",
and I'm fine with new boards added still using "max-frequency" before
new solution landed, as it will take longer time..

BTW, the optimal emmc io clock for K1 is 375MHz(parent pll2_d8),
setting to 204.8MHz may work but runs in lower speed.
while for SD card, it's 204.8MHz(parent pll1_d6_409p6).

-- 
Yixun Lan (dlan)

  parent reply	other threads:[~2026-10-14 21:28 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-02 21:29 [PATCH 0/3] mmc: k1: fixes for the SpacemiT K1 SDHCI driver Dave Klotz
2026-10-02 21:29 ` [PATCH 1/3] mmc: k1: handle a missing max-frequency and clk_set_rate()'s return value Dave Klotz
2026-10-04  9:14   ` Kathpalia, Tanmay
2026-10-04  9:30   ` Kathpalia, Tanmay
2026-10-05 17:46     ` Dave Klotz
2026-10-02 21:29 ` [PATCH 2/3] mmc: k1: let the SPL read SD cards more than one block at a time Dave Klotz
2026-10-04  9:28   ` Kathpalia, Tanmay
2026-10-02 21:29 ` [PATCH 3/3] mmc: k1: do not release the shared AXI clock and reset on probe failure Dave Klotz
2026-10-04  9:28   ` Kathpalia, Tanmay
2026-10-02 22:06 ` [PATCH 0/3] mmc: k1: fixes for the SpacemiT K1 SDHCI driver Dave Klotz
2026-10-05 17:50 ` [PATCH v2 " Dave Klotz
2026-10-05 17:55   ` [PATCH v2 1/3] mmc: k1: handle a missing max-frequency and clk_set_rate()'s return value Dave Klotz
2026-10-06  5:40     ` Kathpalia, Tanmay
2026-10-10  8:45     ` Yixun Lan
2026-10-05 18:01   ` [PATCH v2 2/3] mmc: k1: let the SPL read SD cards more than one block at a time Dave Klotz
2026-10-10  6:17     ` Zixian Zeng
2026-10-10 19:02       ` Kathpalia, Tanmay
2026-10-10 19:16         ` Kathpalia, Tanmay
2026-10-11  3:38           ` Zixian Zeng
2026-10-11 14:31             ` Kathpalia, Tanmay
2026-10-11 15:33               ` Anand Moon
2026-10-11 19:41                 ` Kathpalia, Tanmay
2026-10-12 13:15               ` Zixian Zeng
2026-10-12 14:00                 ` Kathpalia, Tanmay
2026-10-12 14:30                   ` Yixun Lan
2026-10-12 14:50                     ` Kathpalia, Tanmay
2026-10-12 15:22                       ` Yixun Lan
2026-10-14 19:59                   ` Dave Klotz
2026-10-14 20:34                     ` Kathpalia, Tanmay
2026-10-14 21:31                       ` Yixun Lan
2026-10-14 21:28                     ` Yixun Lan [this message]
2026-10-12 16:07                 ` Anand Moon
2026-10-13  0:15                   ` Yixun Lan
2026-10-13  3:44                     ` Anand Moon
2026-10-05 18:11   ` [PATCH v2 3/3] mmc: k1: do not release the shared AXI clock and reset on probe failure Dave Klotz
2026-10-10  7:14     ` Yixun Lan
2026-10-10 19:27       ` Kathpalia, Tanmay

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=20261014212835-GKM26088@kernel.org \
    --to=dlan@kernel.org \
    --cc=DaveWK225@protonmail.com \
    --cc=alan.tseng.cs@gmail.com \
    --cc=eric.chung@riscstar.com \
    --cc=jh80.chung@samsung.com \
    --cc=linux.amoon@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=sycamoremoon376@gmail.com \
    --cc=tanmay.kathpalia@altera.com \
    --cc=tanmay.kathpalia@gmail.com \
    --cc=trini@konsulko.com \
    --cc=u-boot-spacemit@groups.io \
    --cc=u-boot@lists.u-boot-project.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