projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ca8968
)
mmc: sdhci: Do not BUG on invalid vdd
author
Adrian Hunter
<adrian.hunter@intel.com>
Thu, 26 Nov 2015 12:00:46 +0000
(14:00 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Tue, 22 Dec 2015 10:32:14 +0000
(11:32 +0100)
The driver may not be able to set the power correctly but that
is not a reason to BUG().
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/sdhci.c
b/drivers/mmc/host/sdhci.c
index 2b17cc1246caa146f157d70164825d22b906de8b..4cfb26152a58f5ccb90ff2433724f892c7347764 100644
(file)
--- a/
drivers/mmc/host/sdhci.c
+++ b/
drivers/mmc/host/sdhci.c
@@
-1299,7
+1299,9
@@
static void sdhci_set_power(struct sdhci_host *host, unsigned char mode,
pwr = SDHCI_POWER_330;
break;
default:
- BUG();
+ WARN(1, "%s: Invalid vdd %#x\n",
+ mmc_hostname(host->mmc), vdd);
+ break;
}
}