diff mbox series

[v2,5/6] mmc: atmel-sdhci: enable the required generic clock

Message ID 20200827092557.269129-2-eugen.hristev@microchip.com
State Accepted
Commit 81f16438d48f4690339ae47adc72dfcd4aa63ba0
Delegated to: Eugen Hristev
Headers show
Series None | expand

Commit Message

Eugen Hristev Aug. 27, 2020, 9:25 a.m. UTC
The second clock of the IP block (the generic clock), must be explicitly
enabled.

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

Comments

Peng Fan Aug. 28, 2020, 5:36 a.m. UTC | #1
> Subject: [PATCH v2 5/6] mmc: atmel-sdhci: enable the required generic clock
> 
> The second clock of the IP block (the generic clock), must be explicitly
> enabled.
> 
> 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
> 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;

Reviewed-by: Peng Fan <pengfan@nxp.com>

> --
> 2.25.1
diff mbox series

Patch

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;