Commit a7b7401c786871ec65572e1cd66703a0eb461060

Authored by Marek Vasut
1 parent 635ae6fefa

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 <marek.vasut+renesas@gmail.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/mmc/matsushita-common.c
... ... @@ -504,6 +504,7 @@
504 504 u32 val, tmp;
505 505  
506 506 switch (mmc->bus_width) {
  507 + case 0:
507 508 case 1:
508 509 val = MATSU_SD_OPTION_WIDTH_1;
509 510 break;