* [PATCH 2/2] mmc: sdhci-pltfm: enable interrupt mode to detect card
@ 2015-05-13 8:20 Yangbo Lu
2015-05-13 16:37 ` Scott Wood
0 siblings, 1 reply; 3+ messages in thread
From: Yangbo Lu @ 2015-05-13 8:20 UTC (permalink / raw)
To: linuxppc-dev, linux-kernel, scottwood; +Cc: Yangbo Lu
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@freescale.com>
---
drivers/mmc/host/sdhci-pltfm.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index c5b01d6..62f4049 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -102,6 +102,13 @@ void sdhci_get_of_property(struct platform_device *pdev)
of_device_is_compatible(np, "fsl,mpc8536-esdhc"))
host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;
+ 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;
+
clk = of_get_property(np, "clock-frequency", &size);
if (clk && size == sizeof(*clk) && *clk)
pltfm_host->clock = be32_to_cpup(clk);
--
2.1.0.27.g96db324
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] mmc: sdhci-pltfm: enable interrupt mode to detect card
2015-05-13 8:20 [PATCH 2/2] mmc: sdhci-pltfm: enable interrupt mode to detect card Yangbo Lu
@ 2015-05-13 16:37 ` Scott Wood
[not found] ` <BY1PR0301MB1192B4134746A153763312A9F2D80@BY1PR0301MB1192.namprd03.prod.outlook.com>
0 siblings, 1 reply; 3+ messages in thread
From: Scott Wood @ 2015-05-13 16:37 UTC (permalink / raw)
To: Yangbo Lu; +Cc: linuxppc-dev, linux-kernel
On Wed, 2015-05-13 at 16:20 +0800, Yangbo Lu 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@freescale.com>
> ---
> drivers/mmc/host/sdhci-pltfm.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
> index c5b01d6..62f4049 100644
> --- a/drivers/mmc/host/sdhci-pltfm.c
> +++ b/drivers/mmc/host/sdhci-pltfm.c
> @@ -102,6 +102,13 @@ void sdhci_get_of_property(struct platform_device *pdev)
> of_device_is_compatible(np, "fsl,mpc8536-esdhc"))
> host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;
>
> + 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;
Please don't line up continuation lines with the if-body. All of the
"of_device_is_compatibles" should start in the same column.
Given that you need to modify the device tree for this, why not just use
SVR?
-Scott
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-14 20:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-13 8:20 [PATCH 2/2] mmc: sdhci-pltfm: enable interrupt mode to detect card Yangbo Lu
2015-05-13 16:37 ` Scott Wood
[not found] ` <BY1PR0301MB1192B4134746A153763312A9F2D80@BY1PR0301MB1192.namprd03.prod.outlook.com>
2015-05-14 20:21 ` Scott Wood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome