diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-12-31 09:50:30 -0800 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2008-12-31 19:27:18 +0100 |
commit | f6e10b865c3ea56bdaa8c6ecfee313b997900dbb (patch) | |
tree | 88871cb356ec512e7f4c721b84ea67a69d9543f7 /drivers/mmc | |
parent | 9c43df57910bbba540a6cb5c9132302a9ea5f41a (diff) | |
download | kernel_samsung_smdk4412-f6e10b865c3ea56bdaa8c6ecfee313b997900dbb.zip kernel_samsung_smdk4412-f6e10b865c3ea56bdaa8c6ecfee313b997900dbb.tar.gz kernel_samsung_smdk4412-f6e10b865c3ea56bdaa8c6ecfee313b997900dbb.tar.bz2 |
mmc: warn about voltage mismatches
Get rid of a silent failure mode when the MMC/SD host doesn't
support the voltages needed to operate a given card, by
adding a warning. A 3.3V host and a 3.0V card, for example,
no longer need to mysteriously just not work at all.
This isn't the best diagnostic; ideally it would also tell
what voltage the card and host support (and not just by
dumping the bitmasks).
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 5f288ae..df6ce4a 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -542,6 +542,8 @@ u32 mmc_select_voltage(struct mmc_host *host, u32 ocr) host->ios.vdd = bit; mmc_set_ios(host); } else { + pr_warning("%s: host doesn't support card's voltages\n", + mmc_hostname(host)); ocr = 0; } |