* [PATCH] mmc: msm_sdhci: Use mmc_of_parse for setting host_caps
@ 2020-07-16 9:07 ` Manivannan Sadhasivam
2020-07-16 13:50 ` Anibal Limon
2020-07-17 0:36 ` Jaehoon Chung
0 siblings, 2 replies; 4+ messages in thread
From: Manivannan Sadhasivam @ 2020-07-16 9:07 UTC (permalink / raw)
To: u-boot
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>
---
drivers/mmc/msm_sdhci.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c
index da3ae2ec35..23e2e0fbc3 100644
--- a/drivers/mmc/msm_sdhci.c
+++ b/drivers/mmc/msm_sdhci.c
@@ -142,6 +142,10 @@ static int msm_sdc_probe(struct udevice *dev)
writel(caps, host->ioaddr + SDHCI_VENDOR_SPEC_CAPABILITIES0);
}
+ ret = mmc_of_parse(dev, &plat->cfg);
+ if (ret)
+ return ret;
+
host->mmc = &plat->mmc;
host->mmc->dev = dev;
ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] mmc: msm_sdhci: Use mmc_of_parse for setting host_caps
2020-07-16 9:07 ` [PATCH] mmc: msm_sdhci: Use mmc_of_parse for setting host_caps Manivannan Sadhasivam
@ 2020-07-16 13:50 ` Anibal Limon
2020-07-16 16:48 ` Ramon Fried
2020-07-17 0:36 ` Jaehoon Chung
1 sibling, 1 reply; 4+ messages in thread
From: Anibal Limon @ 2020-07-16 13:50 UTC (permalink / raw)
To: u-boot
I tested the patch using,
https://snapshots.linaro.org/96boards/dragonboard410c/linaro/uboot/28/
And now the mmc devices appears.
On Thu, 16 Jul 2020 at 04:07, Manivannan Sadhasivam <
manivannan.sadhasivam@linaro.org> wrote:
> 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>
> ---
> drivers/mmc/msm_sdhci.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c
> index da3ae2ec35..23e2e0fbc3 100644
> --- a/drivers/mmc/msm_sdhci.c
> +++ b/drivers/mmc/msm_sdhci.c
> @@ -142,6 +142,10 @@ static int msm_sdc_probe(struct udevice *dev)
> writel(caps, host->ioaddr +
> SDHCI_VENDOR_SPEC_CAPABILITIES0);
> }
>
> + ret = mmc_of_parse(dev, &plat->cfg);
> + if (ret)
> + return ret;
> +
> host->mmc = &plat->mmc;
> host->mmc->dev = dev;
> ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
> --
> 2.17.1
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] mmc: msm_sdhci: Use mmc_of_parse for setting host_caps
2020-07-16 13:50 ` Anibal Limon
@ 2020-07-16 16:48 ` Ramon Fried
0 siblings, 0 replies; 4+ messages in thread
From: Ramon Fried @ 2020-07-16 16:48 UTC (permalink / raw)
To: u-boot
On Thu, Jul 16, 2020 at 4:50 PM Anibal Limon <anibal.limon@linaro.org> wrote:
>
> I tested the patch using,
>
> https://snapshots.linaro.org/96boards/dragonboard410c/linaro/uboot/28/
>
> And now the mmc devices appears.
>
> On Thu, 16 Jul 2020 at 04:07, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> wrote:
>>
>> 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>
>>
>> ---
>> drivers/mmc/msm_sdhci.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c
>> index da3ae2ec35..23e2e0fbc3 100644
>> --- a/drivers/mmc/msm_sdhci.c
>> +++ b/drivers/mmc/msm_sdhci.c
>> @@ -142,6 +142,10 @@ static int msm_sdc_probe(struct udevice *dev)
>> writel(caps, host->ioaddr + SDHCI_VENDOR_SPEC_CAPABILITIES0);
>> }
>>
>> + ret = mmc_of_parse(dev, &plat->cfg);
>> + if (ret)
>> + return ret;
>> +
>> host->mmc = &plat->mmc;
>> host->mmc->dev = dev;
>> ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
>> --
>> 2.17.1
>>
Reviewed-By: Ramon Fried <rfried.dev@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] mmc: msm_sdhci: Use mmc_of_parse for setting host_caps
2020-07-16 9:07 ` [PATCH] mmc: msm_sdhci: Use mmc_of_parse for setting host_caps Manivannan Sadhasivam
2020-07-16 13:50 ` Anibal Limon
@ 2020-07-17 0:36 ` Jaehoon Chung
1 sibling, 0 replies; 4+ messages in thread
From: Jaehoon Chung @ 2020-07-17 0:36 UTC (permalink / raw)
To: u-boot
On 7/16/20 6:07 PM, Manivannan Sadhasivam wrote:
> 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>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Best Regards,
Jaehoon Chung
> ---
> drivers/mmc/msm_sdhci.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c
> index da3ae2ec35..23e2e0fbc3 100644
> --- a/drivers/mmc/msm_sdhci.c
> +++ b/drivers/mmc/msm_sdhci.c
> @@ -142,6 +142,10 @@ static int msm_sdc_probe(struct udevice *dev)
> writel(caps, host->ioaddr + SDHCI_VENDOR_SPEC_CAPABILITIES0);
> }
>
> + ret = mmc_of_parse(dev, &plat->cfg);
> + if (ret)
> + return ret;
> +
> host->mmc = &plat->mmc;
> host->mmc->dev = dev;
> ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-07-17 0:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20200716090758epcas1p3171a9af0dce119b1aa75ad7455239ac4@epcas1p3.samsung.com>
2020-07-16 9:07 ` [PATCH] mmc: msm_sdhci: Use mmc_of_parse for setting host_caps Manivannan Sadhasivam
2020-07-16 13:50 ` Anibal Limon
2020-07-16 16:48 ` Ramon Fried
2020-07-17 0:36 ` Jaehoon Chung
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.