mmc: tmio: Clear BUSWIDTH bit when WMODE bit is set
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 19 Feb 2019 18:20:14 +0000 (19:20 +0100)
committerMarek Vasut <marex@denx.de>
Mon, 25 Feb 2019 15:07:41 +0000 (16:07 +0100)
According to latest specification rev.0026, when HOST_MODE bit 0
(WMODE) is not set, HOST_MODE bit 8 (BUSWIDTH) is ignored. Clear
HOST_MODE bit 8 in such case and align the code with Linux and
avoid possible unforeseen issues.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mmc/tmio-common.c

index 6e656e5a9b81d5660fa3f9af44a0e052c4eced78..01d8c2b92544edfcbf64d592918d1c719a0bbed4 100644 (file)
@@ -707,7 +707,7 @@ static void tmio_sd_host_init(struct tmio_sd_priv *priv)
         */
        if (priv->version >= 0x10) {
                if (priv->caps & TMIO_SD_CAP_64BIT)
-                       tmio_sd_writel(priv, 0x100, TMIO_SD_HOST_MODE);
+                       tmio_sd_writel(priv, 0x000, TMIO_SD_HOST_MODE);
                else
                        tmio_sd_writel(priv, 0x101, TMIO_SD_HOST_MODE);
        } else {