All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephan Gerhold <stephan.gerhold@linaro.org>
To: Aswin Murugan <aswin.murugan@oss.qualcomm.com>
Cc: casey.connolly@linaro.org, neil.armstrong@linaro.org,
	sumit.garg@kernel.org, trini@konsulko.com, peng.fan@nxp.com,
	jh80.chung@samsung.com, tanmay.kathpalia@altera.com,
	nathbappai@gmail.com, balaji.selvanathan@oss.qualcomm.com,
	Michael.Srba@seznam.cz, u-boot-qcom@groups.io,
	u-boot@lists.u-boot-project.org
Subject: Re: [PATCH v4 3/4] mmc: msm_sdhci: add HS400 DDR/SDC4 DLL calibration
Date: Mon, 23 Nov 2026 16:06:06 +0100	[thread overview]
Message-ID: <awRWXoh9NR0nb-ZP@linaro.org> (raw)
In-Reply-To: <20261110114520.229480-4-aswin.murugan@oss.qualcomm.com>

On Tue, Nov 10, 2026 at 05:15:19PM +0530, Aswin Murugan wrote:
> Add the SDC4 CM_DLL based DDR calibration sequence required for
> HS400, along with the HC_MCLK_SEL/HC_SELECT_IN mode switching needed
> to move the data path into HS400 timing once calibration completes.
> An optional qcom,ddr-config DT property can override the DDR
> configuration POR value.
> 
> Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>

I would expect you need to check mmc->hs400_tuning during
execute_tuning() to properly tune for HS400 instead of HS200,
but these checks seem to be missing in your series? Linux has the
following:

	/*
	 * For HS400 tuning in HS200 timing requires:
	 * - select MCLK/2 in VENDOR_SPEC
	 * - program MCLK to 400MHz (or nearest supported) in GCC
	 */
	if (host->flags & SDHCI_HS400_TUNING) {
		sdhci_msm_hc_select_mode(host);
		msm_set_clock_rate_for_bus_mode(host, ios.clock, ios.timing);
		host->flags &= ~SDHCI_HS400_TUNING;
	}

Thanks,
Stephan

  reply	other threads:[~2026-11-23 15:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 11:45 [PATCH v4 0/4] qcom: Enable HS200/HS400 eMMC modes on Qualcomm platforms Aswin Murugan
2026-11-10 11:45 ` [PATCH v4 1/4] mmc: msm_sdhci: move definitions to msm_sdhci.h Aswin Murugan
2026-11-10 11:45 ` [PATCH v4 2/4] mmc: msm_sdhci: add CM_DLL init and HS200 tuning support Aswin Murugan
2026-11-23 15:05   ` Stephan Gerhold
2026-11-10 11:45 ` [PATCH v4 3/4] mmc: msm_sdhci: add HS400 DDR/SDC4 DLL calibration Aswin Murugan
2026-11-23 15:06   ` Stephan Gerhold [this message]
2026-11-10 11:45 ` [PATCH v4 4/4] configs: qcom: enable CONFIG_MMC_HS400_SUPPORT Aswin Murugan

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=awRWXoh9NR0nb-ZP@linaro.org \
    --to=stephan.gerhold@linaro.org \
    --cc=Michael.Srba@seznam.cz \
    --cc=aswin.murugan@oss.qualcomm.com \
    --cc=balaji.selvanathan@oss.qualcomm.com \
    --cc=casey.connolly@linaro.org \
    --cc=jh80.chung@samsung.com \
    --cc=nathbappai@gmail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=peng.fan@nxp.com \
    --cc=sumit.garg@kernel.org \
    --cc=tanmay.kathpalia@altera.com \
    --cc=trini@konsulko.com \
    --cc=u-boot-qcom@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 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.