Re: [PATCH v3] mmc: sdhci-pltfm: enable interrupt mode to detect card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1 June 2015 at 07:47, Yangbo Lu <yangbo.lu@xxxxxxxxxxxxx> wrote:
> Enable interrupt mode to detect card instead of polling mode
> for P1020/P4080/P5020/P5040/T1040 by removing the quirk
> SDHCI_QUIRK_BROKEN_CARD_DETECTION. This could improve data
> transferring performance and avoid the call trace caused by
> polling card status sometime.
>
> Signed-off-by: Yangbo Lu <yangbo.lu@xxxxxxxxxxxxx>

Thanks, applied!

I updated the prefix of the commit message header and removed the
version history from the change-log.

Kind regards
Uffe


> ----
> Changes for v3:
>         - Moved code from sdhci-pltfm to sdhci-of-esdhc
> Changes for v2:
>         - Aligned all "of_device_is_compatibles" in same column
> ---
>  drivers/mmc/host/sdhci-of-esdhc.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c
> index 22e9111..af9dad8 100644
> --- a/drivers/mmc/host/sdhci-of-esdhc.c
> +++ b/drivers/mmc/host/sdhci-of-esdhc.c
> @@ -361,6 +361,13 @@ static int sdhci_esdhc_probe(struct platform_device *pdev)
>         sdhci_get_of_property(pdev);
>
>         np = pdev->dev.of_node;
> +       if (of_device_is_compatible(np, "fsl,p5040-esdhc") ||
> +           of_device_is_compatible(np, "fsl,p5020-esdhc") ||
> +           of_device_is_compatible(np, "fsl,p4080-esdhc") ||
> +           of_device_is_compatible(np, "fsl,p1020-esdhc") ||
> +           of_device_is_compatible(np, "fsl,t1040-esdhc"))
> +               host->quirks &= ~SDHCI_QUIRK_BROKEN_CARD_DETECTION;
> +
>         if (of_device_is_compatible(np, "fsl,p2020-esdhc")) {
>                 /*
>                  * Freescale messed up with P2020 as it has a non-standard
> --
> 2.1.0.27.g96db324
>
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux