Commit e27108c433a249ba8ebc59f7a3113b9b666f5d67
Committed by
Minkyu Kang
1 parent
4b8984e969
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
mmc: s5p_sdhci: Read generic MMC properties from DT
Read generic MMC properties from device-tree. This allows to specify for example cd-inverted property and let MMC core to properly handle such case. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Anand Moon <linux.amoon@gmail.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
drivers/mmc/s5p_sdhci.c
... | ... | @@ -204,8 +204,13 @@ |
204 | 204 | if (ret) |
205 | 205 | return ret; |
206 | 206 | |
207 | + ret = mmc_of_parse(dev, &plat->cfg); | |
208 | + if (ret) | |
209 | + return ret; | |
210 | + | |
207 | 211 | host->mmc = &plat->mmc; |
208 | 212 | host->mmc->dev = dev; |
213 | + | |
209 | 214 | ret = sdhci_setup_cfg(&plat->cfg, host, 0, 400000); |
210 | 215 | if (ret) |
211 | 216 | return ret; |