From: Marek Vasut Date: Mon, 9 Apr 2018 17:31:00 +0200 Subject: [U-Boot] [PATCH 10/15] mmc: matsushita-common: Handle bus width 0 In-Reply-To: <20180409153105.13597-1-marek.vasut+renesas@gmail.com> References: <20180409153105.13597-1-marek.vasut+renesas@gmail.com> Message-ID: <20180409153105.13597-10-marek.vasut+renesas@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- drivers/mmc/matsushita-common.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.16.2