linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mfd: asic3: Fix the broken MMC card detection
@ 2018-05-26  9:31 Robert Jarzmik
  2018-06-04  7:38 ` Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Jarzmik @ 2018-05-26  9:31 UTC (permalink / raw)
  To: Lee Jones, Philipp Zabel, Paul Parsons; +Cc: linux-kernel, Robert Jarzmik

The MMC framework requires the ocr_mask to be provided. Without it, the
SD card is not detected, especially on the hx4700 platform.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
---
 drivers/mfd/asic3.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c
index cf2e25ab2940..1531302a50ec 100644
--- a/drivers/mfd/asic3.c
+++ b/drivers/mfd/asic3.c
@@ -31,6 +31,8 @@
 #include <linux/mfd/ds1wm.h>
 #include <linux/mfd/tmio.h>
 
+#include <linux/mmc/host.h>
+
 enum {
 	ASIC3_CLOCK_SPI,
 	ASIC3_CLOCK_OWM,
@@ -719,6 +721,7 @@ static void asic3_mmc_clk_div(struct platform_device *pdev, int state)
 
 static struct tmio_mmc_data asic3_mmc_data = {
 	.hclk           = 24576000,
+	.ocr_mask	= MMC_VDD_32_33 | MMC_VDD_33_34,
 	.set_pwr        = asic3_mmc_pwr,
 	.set_clk_div    = asic3_mmc_clk_div,
 };
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mfd: asic3: Fix the broken MMC card detection
  2018-05-26  9:31 [PATCH] mfd: asic3: Fix the broken MMC card detection Robert Jarzmik
@ 2018-06-04  7:38 ` Lee Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2018-06-04  7:38 UTC (permalink / raw)
  To: Robert Jarzmik; +Cc: Philipp Zabel, Paul Parsons, linux-kernel

On Sat, 26 May 2018, Robert Jarzmik wrote:

> The MMC framework requires the ocr_mask to be provided. Without it, the
> SD card is not detected, especially on the hx4700 platform.
> 
> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
> ---
>  drivers/mfd/asic3.c | 3 +++
>  1 file changed, 3 insertions(+)

Applied, thanks.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-04  7:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-26  9:31 [PATCH] mfd: asic3: Fix the broken MMC card detection Robert Jarzmik
2018-06-04  7:38 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).