summaryrefslogtreecommitdiff
path: root/drivers/mmc/matsushita-common.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2018-04-09 20:47:31 +0200
committerMarek Vasut <marek.vasut+renesas@gmail.com>2018-04-11 23:12:00 +0200
commit8dc9a10e49381e1d5d7329d123656f19fd7f8131 (patch)
tree7c5109534340a9a4efcb89675095172ba015fd1e /drivers/mmc/matsushita-common.c
parent01c0151a36565c653043d08a826d62d5744e511a (diff)
mmc: matsushita-common: Correctly set mode in 16bit
The HOST_MODE register must be set to 0 when the IP is operated in 16bit mode, otherwise 16bit access to the data FIFO may fail. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/mmc/matsushita-common.c')
-rw-r--r--drivers/mmc/matsushita-common.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/matsushita-common.c b/drivers/mmc/matsushita-common.c
index 739586557a..e552a09ea1 100644
--- a/drivers/mmc/matsushita-common.c
+++ b/drivers/mmc/matsushita-common.c
@@ -688,8 +688,6 @@ static void matsu_sd_host_init(struct matsu_sd_priv *priv)
*/
if (priv->version >= 0x10)
matsu_sd_writel(priv, 0x101, MATSU_SD_HOST_MODE);
- else if (priv->caps & MATSU_SD_CAP_16BIT)
- matsu_sd_writel(priv, 0x1, MATSU_SD_HOST_MODE);
else
matsu_sd_writel(priv, 0x0, MATSU_SD_HOST_MODE);