On 2 June 2015 at 09:09, Yangbo Lu <yangbo...@freescale.com> wrote:
> Add SDHCI_QUIRK2_CIRCUIT_SUPPORT_VS33 for T4240
>
> Signed-off-by: Yangbo Lu <yangbo...@freescale.com>
> ---
>  drivers/mmc/host/sdhci-of-esdhc.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci-of-esdhc.c 
> b/drivers/mmc/host/sdhci-of-esdhc.c
> index 22e9111..4f5fe42 100644
> --- a/drivers/mmc/host/sdhci-of-esdhc.c
> +++ b/drivers/mmc/host/sdhci-of-esdhc.c
> @@ -369,6 +369,9 @@ static int sdhci_esdhc_probe(struct platform_device *pdev)
>                 host->quirks2 |= SDHCI_QUIRK2_BROKEN_HOST_CONTROL;
>         }
>
> +       if (of_device_is_compatible(np, "fsl,t4240-esdhc"))
> +               host->quirks2 |= SDHCI_QUIRK2_CIRCUIT_SUPPORT_VS33;
> +

Instead of checking the compatible, could you check the "ocr_avail"
mask which mmc_of_parse() create from the vmmc regulator?

>         /* call to generic mmc_of_parse to support additional capabilities */
>         ret = mmc_of_parse(host->mmc);
>         if (ret)
> --
> 2.1.0.27.g96db324
>

Kind regards
Uffe
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to