projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38c4f0b
)
mmc: s5p_sdhci: fix to check proper pinmux id
author
Seung-Woo Kim
<sw0312.kim@samsung.com>
Thu, 24 Nov 2016 06:05:51 +0000
(15:05 +0900)
committer
Jaehoon Chung
<jh80.chung@samsung.com>
Thu, 1 Dec 2016 02:09:44 +0000
(11:09 +0900)
At sdhci_get_config(), there was wrong condition to check pimux
id, so this patch fixes to check proper pinmux id.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/mmc/s5p_sdhci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/s5p_sdhci.c
b/drivers/mmc/s5p_sdhci.c
index
b329bef
..
ac737e0
100644
(file)
--- a/
drivers/mmc/s5p_sdhci.c
+++ b/
drivers/mmc/s5p_sdhci.c
@@
-152,7
+152,7
@@
static int sdhci_get_config(const void *blob, int node, struct sdhci_host *host)
/* Get device id */
dev_id = pinmux_decode_periph_id(blob, node);
- if (dev_id < PERIPH_ID_SDMMC0
&&
dev_id > PERIPH_ID_SDMMC3) {
+ if (dev_id < PERIPH_ID_SDMMC0
||
dev_id > PERIPH_ID_SDMMC3) {
debug("MMC: Can't get device id\n");
return -EINVAL;
}