U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Othacehe <othacehe@gnu.org>
To: Peng Fan <peng.fan@nxp.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>,
	Tom Rini <trini@konsulko.com>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Jonas Karlman <jonas@kwiboo.se>, Simon Glass <sjg@chromium.org>,
	Tim Harvey <tharvey@gateworks.com>,
	Jean-Jacques Hiblot <jjhiblot@ti.com>,
	u-boot@lists.denx.de, regis.ray@landisgyr.com,
	pascal.dupuis@landisgyr.com, Mathieu Othacehe <othacehe@gnu.org>
Subject: [PATCH 2/2] mmc: omap_hsmmc: implement send_init_stream callback
Date: Thu, 10 Apr 2025 11:00:21 +0200	[thread overview]
Message-ID: <20250410090021.14446-3-othacehe@gnu.org> (raw)
In-Reply-To: <20250410090021.14446-1-othacehe@gnu.org>

This callback is used to send the 74 clock cycles after power up.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
 drivers/mmc/omap_hsmmc.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index e66ab25d02a..92bc72b267c 100644
--- a/drivers/mmc/omap_hsmmc.c
+++ b/drivers/mmc/omap_hsmmc.c
@@ -780,6 +780,14 @@ tuning_error:
 	return ret;
 }
 #endif
+
+static void omap_hsmmc_send_init_stream(struct udevice *dev)
+{
+	struct omap_hsmmc_data *priv = dev_get_priv(dev);
+	struct hsmmc *mmc_base = priv->base_addr;
+
+	mmc_init_stream(mmc_base);
+}
 #endif
 
 static void mmc_enable_irq(struct mmc *mmc, struct mmc_cmd *cmd)
@@ -1515,9 +1523,10 @@ static const struct dm_mmc_ops omap_hsmmc_ops = {
 	.get_wp		= omap_hsmmc_getwp,
 #endif
 #if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
-	.execute_tuning = omap_hsmmc_execute_tuning,
+	.execute_tuning    = omap_hsmmc_execute_tuning,
 #endif
-	.wait_dat0	= omap_hsmmc_wait_dat0,
+	.send_init_stream  = omap_hsmmc_send_init_stream,
+	.wait_dat0	   = omap_hsmmc_wait_dat0,
 };
 #else
 static const struct mmc_ops omap_hsmmc_ops = {
-- 
2.47.1


  parent reply	other threads:[~2025-04-10  9:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-10  9:00 [PATCH 0/2] mmc: omap_hsmmc: Restore the init_stream sequence Mathieu Othacehe
2025-04-10  9:00 ` [PATCH 1/2] mmc: Add a new callback function to perform the 74 clocks cycle sequence Mathieu Othacehe
2025-04-10  9:00 ` Mathieu Othacehe [this message]
2025-04-18  2:43 ` [PATCH 0/2] mmc: omap_hsmmc: Restore the init_stream sequence Peng Fan
2025-04-23 16:05 ` Peng Fan (OSS)

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=20250410090021.14446-3-othacehe@gnu.org \
    --to=othacehe@gnu.org \
    --cc=jh80.chung@samsung.com \
    --cc=jjhiblot@ti.com \
    --cc=jonas@kwiboo.se \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=pascal.dupuis@landisgyr.com \
    --cc=peng.fan@nxp.com \
    --cc=regis.ray@landisgyr.com \
    --cc=sjg@chromium.org \
    --cc=tharvey@gateworks.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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