From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eugen Hristev Date: Thu, 27 Aug 2020 12:25:56 +0300 Subject: [PATCH v2 5/6] mmc: atmel-sdhci: enable the required generic clock In-Reply-To: <20200827092557.269129-1-eugen.hristev@microchip.com> References: <20200827092557.269129-1-eugen.hristev@microchip.com> Message-ID: <20200827092557.269129-2-eugen.hristev@microchip.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The second clock of the IP block (the generic clock), must be explicitly enabled. Signed-off-by: Eugen Hristev --- 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 54b660c34a..c67b065061 100644 --- a/drivers/mmc/atmel_sdhci.c +++ b/drivers/mmc/atmel_sdhci.c @@ -85,6 +85,10 @@ static int atmel_sdhci_probe(struct udevice *dev) if (!max_clk) return -EINVAL; + ret = clk_enable(&clk); + if (ret) + return ret; + host->max_clk = max_clk; host->mmc = &plat->mmc; host->mmc->dev = dev; -- 2.25.1