linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: sunxi: Disable eMMC HS-DDR (MMC_CAP_1_8V_DDR) for Allwinner A80
@ 2016-04-26 15:37 Chen-Yu Tsai
  2016-04-28 10:38 ` Ulf Hansson
  0 siblings, 1 reply; 2+ messages in thread
From: Chen-Yu Tsai @ 2016-04-26 15:37 UTC (permalink / raw)
  To: linux-arm-kernel

eMMC HS-DDR no longer works on the A80, despite it working when support
for this developed.

Disable it for now.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---

Hi,

When i worked on this it was working, but now it isn't. Unfortunately I
don't have my old tree to do a proper bisect. I probably won't have time
to dig into this issue before v4.6 release, so it's best to disable it
on the A80 for now.

Thanks.

---
 drivers/mmc/host/sunxi-mmc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
index 8372a413848c..7fc8b7aa83f0 100644
--- a/drivers/mmc/host/sunxi-mmc.c
+++ b/drivers/mmc/host/sunxi-mmc.c
@@ -1129,6 +1129,11 @@ static int sunxi_mmc_probe(struct platform_device *pdev)
 				  MMC_CAP_1_8V_DDR |
 				  MMC_CAP_ERASE | MMC_CAP_SDIO_IRQ;
 
+	/* TODO MMC DDR is not working on A80 */
+	if (of_device_is_compatible(pdev->dev.of_node,
+				    "allwinner,sun9i-a80-mmc"))
+		mmc->caps &= ~MMC_CAP_1_8V_DDR;
+
 	ret = mmc_of_parse(mmc);
 	if (ret)
 		goto error_free_dma;
-- 
2.8.1

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

* [PATCH] mmc: sunxi: Disable eMMC HS-DDR (MMC_CAP_1_8V_DDR) for Allwinner A80
  2016-04-26 15:37 [PATCH] mmc: sunxi: Disable eMMC HS-DDR (MMC_CAP_1_8V_DDR) for Allwinner A80 Chen-Yu Tsai
@ 2016-04-28 10:38 ` Ulf Hansson
  0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2016-04-28 10:38 UTC (permalink / raw)
  To: linux-arm-kernel

On 26 April 2016 at 17:37, Chen-Yu Tsai <wens@csie.org> wrote:
> eMMC HS-DDR no longer works on the A80, despite it working when support
> for this developed.
>
> Disable it for now.
>
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>

Thanks, applied for fixes!

Kind regards
Uffe

> ---
>
> Hi,
>
> When i worked on this it was working, but now it isn't. Unfortunately I
> don't have my old tree to do a proper bisect. I probably won't have time
> to dig into this issue before v4.6 release, so it's best to disable it
> on the A80 for now.
>
> Thanks.
>
> ---
>  drivers/mmc/host/sunxi-mmc.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
> index 8372a413848c..7fc8b7aa83f0 100644
> --- a/drivers/mmc/host/sunxi-mmc.c
> +++ b/drivers/mmc/host/sunxi-mmc.c
> @@ -1129,6 +1129,11 @@ static int sunxi_mmc_probe(struct platform_device *pdev)
>                                   MMC_CAP_1_8V_DDR |
>                                   MMC_CAP_ERASE | MMC_CAP_SDIO_IRQ;
>
> +       /* TODO MMC DDR is not working on A80 */
> +       if (of_device_is_compatible(pdev->dev.of_node,
> +                                   "allwinner,sun9i-a80-mmc"))
> +               mmc->caps &= ~MMC_CAP_1_8V_DDR;
> +
>         ret = mmc_of_parse(mmc);
>         if (ret)
>                 goto error_free_dma;
> --
> 2.8.1
>

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

end of thread, other threads:[~2016-04-28 10:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-26 15:37 [PATCH] mmc: sunxi: Disable eMMC HS-DDR (MMC_CAP_1_8V_DDR) for Allwinner A80 Chen-Yu Tsai
2016-04-28 10:38 ` Ulf Hansson

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).