]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: msm_sdhci: Use mmc_of_parse for setting host_caps
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 16 Jul 2020 09:07:26 +0000 (14:37 +0530)
committerPeng Fan <peng.fan@nxp.com>
Tue, 15 Sep 2020 02:13:37 +0000 (10:13 +0800)
commit4c6b225203a49d5aba8567723246df18a80ffb8d
tree8199aa14aae79ddd69463f93e19597c521c42046
parentffd9dfff594d74545242d33a6b5d460421747259
mmc: msm_sdhci: Use mmc_of_parse for setting host_caps

Since the introduction of 'get_cd' callback in sdhci core,
dragonboard410c's MMC interface is broken. It turns out that 'get_cd'
callback checks for the host_caps for validating the chip select. And
since the msm_sdhci driver is not parsing the host_caps from DT, not
all of the cababilities are parsed properly. This results in the MMC
interfaces to be broken.

Hence, fix this by adding a call to 'mmc_of_parse' during driver probe.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tested-by: Aníbal Limón <anibal.limon@linaro.org>
Reviewed-By: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/msm_sdhci.c