projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mmc: core: stop trying to switch width when only one bit is supported
[cascardo/linux.git]
/
drivers
/
mmc
/
core
/
mmc.c
diff --git
a/drivers/mmc/core/mmc.c
b/drivers/mmc/core/mmc.c
index
02ad792
..
7466ce0
100644
(file)
--- a/
drivers/mmc/core/mmc.c
+++ b/
drivers/mmc/core/mmc.c
@@
-886,7
+886,7
@@
static int mmc_select_bus_width(struct mmc_card *card)
unsigned idx, bus_width = 0;
int err = 0;
- if (!mmc_can_ext_csd(card)
&&
+ if (!mmc_can_ext_csd(card)
||
!(host->caps & (MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA)))
return 0;