Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753322AbbENGok (ORCPT ); Thu, 14 May 2015 02:44:40 -0400 Received: from mail-by2on0120.outbound.protection.outlook.com ([207.46.100.120]:44032 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753214AbbENGog (ORCPT ); Thu, 14 May 2015 02:44:36 -0400 X-Greylist: delayed 907 seconds by postgrey-1.27 at vger.kernel.org; Thu, 14 May 2015 02:44:36 EDT Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; From: Yangbo Lu To: , , CC: Yangbo Lu Subject: [PATCH v2, 2/2] mmc: sdhci-pltfm: enable interrupt mode to detect card Date: Thu, 14 May 2015 14:40:48 +0800 Message-ID: <1431585648-35130-1-git-send-email-yangbo.lu@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD027;1:mpDd7mh++Pyl7zoLxU9m/eH2DIo97xZhX66Jg2ffbiLOLb/Snyw8YPHo4LqEhUC1iCIai4yVLHbESPgXVtLUSQomAXrRjnlDLAmcDj7Om298xQQxq1dwwWWrwHYQFeNffyjuawjDkMCPeo8MPAd7MOMd+Kq3vUze9YDoDX9PkxFRi/bW2wn0D9tDPQsInug3IBjvu7YKgyA4x0Q/pFqGddhCmbaCX+D9bQ8f/ri3V4gP4du/Btfxm3IrHbhP+vnoh7mQviBFcWWbJuy09T69d+xP/FseZ3WMV1f6C2iqrq8A7r4LyjLNauqasDwG3DnuMz+Ht+7LHrdNCOvhnDKz5w== X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(339900001)(189002)(199003)(106466001)(50466002)(48376002)(36756003)(87936001)(104016003)(229853001)(33646002)(86362001)(50986999)(6806004)(47776003)(2201001)(85426001)(62966003)(77156002)(19580405001)(19580395003)(5001960100002)(107886002)(92566002)(77096005)(5001770100001)(189998001)(50226001)(46102003)(105606002)(4001450100001)(4001430100001)(2101003);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB1476;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:sfv;MX:1;A:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1476; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BLUPR03MB1476;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1476; X-Forefront-PRVS: 0576145E86 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2015 06:44:32.8117 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1476 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1600 Lines: 40 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 ---- Changes for v2: - Aligned all "of_device_is_compatibles" in same column --- 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..97128f3 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/