From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Jonas Richardsen <jonasrichardsen@emlix.com>,
Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH master 3/3] mci: sdhci: populate struct sdhci::mci in drivers
Date: Wed, 22 May 2024 10:07:34 +0200 [thread overview]
Message-ID: <20240522080734.1965257-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20240522080734.1965257-1-a.fatoum@pengutronix.de>
sdhci_wait_idle will make use of the mci's device to prefix error
messages, thus populate the field where it's still missing.
Reported-by: Jonas Richardsen <jonasrichardsen@emlix.com>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
drivers/mci/atmel-sdhci.c | 1 +
drivers/mci/dove-sdhci.c | 1 +
drivers/mci/tegra-sdmmc.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/drivers/mci/atmel-sdhci.c b/drivers/mci/atmel-sdhci.c
index c124e736bb7d..4082d1769537 100644
--- a/drivers/mci/atmel-sdhci.c
+++ b/drivers/mci/atmel-sdhci.c
@@ -139,6 +139,7 @@ static int at91_sdhci_probe(struct device *dev)
"microchip,sdcal-inverted");
at91_sdhci_mmio_init(&priv->host, IOMEM(iores->start));
+ priv->host.sdhci.mci = &priv->mci;
priv->gck_rate = at91_sdhci_conf_clks(priv);
if (priv->gck_rate < 0)
diff --git a/drivers/mci/dove-sdhci.c b/drivers/mci/dove-sdhci.c
index d37046ad31bf..c370ace9e8f8 100644
--- a/drivers/mci/dove-sdhci.c
+++ b/drivers/mci/dove-sdhci.c
@@ -271,6 +271,7 @@ static int dove_sdhci_probe(struct device *dev)
host = xzalloc(sizeof(*host));
host->sdhci.base = dev_request_mem_region(dev, 0);
+ host->sdhci.mci = &host->mci;
host->mci.max_req_size = 0x8000;
host->mci.hw_dev = dev;
host->mci.send_cmd = dove_sdhci_mci_send_cmd;
diff --git a/drivers/mci/tegra-sdmmc.c b/drivers/mci/tegra-sdmmc.c
index e940edf3227a..10017146417d 100644
--- a/drivers/mci/tegra-sdmmc.c
+++ b/drivers/mci/tegra-sdmmc.c
@@ -401,6 +401,7 @@ static int tegra_sdmmc_probe(struct device *dev)
host->sdhci.read32 = tegra_sdmmc_read32;
host->sdhci.write32 = tegra_sdmmc_write32;
+ host->sdhci.mci = mci;
mci->hw_dev = dev;
mci->f_max = 48000000;
--
2.39.2
next prev parent reply other threads:[~2024-05-22 8:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-22 8:07 [PATCH master 1/3] mci: sdhci: use host device, not card, for debug message Ahmad Fatoum
2024-05-22 8:07 ` [PATCH master 2/3] mci: sdhci: retrieve host device via common helper or NULL Ahmad Fatoum
2024-05-22 8:07 ` Ahmad Fatoum [this message]
2024-05-24 11:43 ` [PATCH master 1/3] mci: sdhci: use host device, not card, for debug message Sascha Hauer
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=20240522080734.1965257-3-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=jonasrichardsen@emlix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox