From: Marek Vasut Date: Mon, 29 Jan 2018 23:41:42 +0000 (+0100) Subject: mmc: matsushita-common: Handle bus width 0 X-Git-Tag: v2018.05-rc2~18^2~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7b7401c786871ec65572e1cd66703a0eb461060;p=u-boot mmc: matsushita-common: Handle bus width 0 Handle bus width 0 as 1-bit bus to assure valid content of MATSU_SD_OPTION register WIDTH field. Signed-off-by: Marek Vasut Cc: Jaehoon Chung Cc: Masahiro Yamada --- diff --git a/drivers/mmc/matsushita-common.c b/drivers/mmc/matsushita-common.c index 11e4553d87..377f349b41 100644 --- a/drivers/mmc/matsushita-common.c +++ b/drivers/mmc/matsushita-common.c @@ -504,6 +504,7 @@ static int matsu_sd_set_bus_width(struct matsu_sd_priv *priv, u32 val, tmp; switch (mmc->bus_width) { + case 0: case 1: val = MATSU_SD_OPTION_WIDTH_1; break;