public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Eugen Hristev <eugen.hristev@microchip.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 6/6] mmc: atmel-sdhci: use mmc_of_parse to get the DT properties
Date: Thu, 27 Aug 2020 12:25:57 +0300	[thread overview]
Message-ID: <20200827092557.269129-3-eugen.hristev@microchip.com> (raw)
In-Reply-To: <20200827092557.269129-1-eugen.hristev@microchip.com>

Call mmc_of_parse at probe time to fetch all the host properties
from the DT.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
 drivers/mmc/atmel_sdhci.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c
index c67b065061..f56ae63bc2 100644
--- a/drivers/mmc/atmel_sdhci.c
+++ b/drivers/mmc/atmel_sdhci.c
@@ -89,6 +89,10 @@ static int atmel_sdhci_probe(struct udevice *dev)
 	if (ret)
 		return ret;
 
+	ret = mmc_of_parse(dev, &plat->cfg);
+	if (ret)
+		return ret;
+
 	host->max_clk = max_clk;
 	host->mmc = &plat->mmc;
 	host->mmc->dev = dev;
-- 
2.25.1

  parent reply	other threads:[~2020-08-27  9:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-27  9:25 [PATCH v2 4/6] mmc: atmel-sdhci: do not check clk_set_rate return value Eugen Hristev
2020-08-27  9:25 ` [PATCH v2 5/6] mmc: atmel-sdhci: enable the required generic clock Eugen Hristev
2020-08-28  5:36   ` Peng Fan
2020-08-27  9:25 ` Eugen Hristev [this message]
2020-08-27  9:32   ` [PATCH v2 6/6] mmc: atmel-sdhci: use mmc_of_parse to get the DT properties Peng Fan

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=20200827092557.269129-3-eugen.hristev@microchip.com \
    --to=eugen.hristev@microchip.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