Commit 5e6c2c97c56eb1b656e27fdcfaa3722828a9eca5

Authored by Linus Torvalds

Merge tag 'mmc-v3.19-2' of git://git.linaro.org/people/ulf.hansson/mmc

Pull one MMC fix from Ulf Hansson:
 "MMC core:

   - Fix selection of buswidth for mmc hosts supporting 1-bit only"

* tag 'mmc-v3.19-2' of git://git.linaro.org/people/ulf.hansson/mmc:
  mmc: core: stop trying to switch width when only one bit is supported

Showing 1 changed file Side-by-side Diff

drivers/mmc/core/mmc.c
... ... @@ -886,7 +886,7 @@
886 886 unsigned idx, bus_width = 0;
887 887 int err = 0;
888 888  
889   - if (!mmc_can_ext_csd(card) &&
  889 + if (!mmc_can_ext_csd(card) ||
890 890 !(host->caps & (MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA)))
891 891 return 0;
892 892