Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933597AbbEMIYj (ORCPT ); Wed, 13 May 2015 04:24:39 -0400 Received: from mail-bn1bon0118.outbound.protection.outlook.com ([157.56.111.118]:16689 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752813AbbEMIYc (ORCPT ); Wed, 13 May 2015 04:24:32 -0400 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 2/2] mmc: sdhci-pltfm: enable interrupt mode to detect card Date: Wed, 13 May 2015 16:20:46 +0800 Message-ID: <1431505246-40102-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;BL2FFO11FD039;1:d9zyxV0sVN3GOVii8X/TzJVBoF/zhhkZRNJjljDbuE1xgxl+9f57oQb60D9hqG0/tqooWbHtTMtvivQ4Fua5EI70H0bms2n5WX+gg08xZ5yCMDMZzjlfNe79lC1BgWf9YxO+m8ZIGe/o4QoqPC4IuMb06IMCh/0PD2Mlq2wBpxx/VgkN/2GO2jekrK0FVCLFg7Srl3MuwxQ251AKAV1ZEesN+NvPJeaRIjSit0uULV/e7NJYG25tlxdrufKbcZSfTxna28xaZGwj5fqUkwz3ZAwICPsXVNMuAflY6/IB+69L4ZJvERjG9zDVecoUUWr3ElbLzZh+iInWBFNJIcY2QQ== X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(339900001)(189002)(199003)(85426001)(50226001)(33646002)(86362001)(92566002)(77096005)(77156002)(62966003)(47776003)(50466002)(6806004)(106466001)(104016003)(48376002)(46102003)(189998001)(5001770100001)(87936001)(36756003)(5001960100002)(107886002)(2201001)(50986999)(105606002)(229853001)(19580395003)(19580405001)(2101003)(4001430100001)(4001450100001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR0301MB1192;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-Exchange-Diagnostics: 1;BY1PR0301MB1192;2:Q+hjicEYhBPpo3or6FbovJeQzFhtgC94MhKqDKRT4n2t+2xRHXsjeg0yxJOg66jM;2:eay8OmO9qvE35BtoyahrX1vRXE/WM7+LVrVpoPbHR9TpsQGhMK6fe9AP+1ys+zgPt56txkDCihzowcKTx/IcvJb3YMRsugtaT6nNUUu0+rHdGnIQtQEPufFJo5cHe9v/JXmgkSQUXIfHPB5Mk5xG6dCrjF18xSSsGmPO/qWxZErHTCNXvpPvjQr5gBgjAn5CgSWLsqvp8+FMAHWw8X7J4ydFM7tbvsjIIO9xOOhqY3g=;6:N5P/BaXCl+MRZQWC3DDTaaXw3CNVOc+iswmxYpioq+bM0Qfd9vopkNQ5DwUcjjOU4fkOGbvjZbyYn9e06bTTwlk4qGd3KtF3HhC6v3BhBexiiWicObRCJL+xXATBu7quDuS+1Z8Oy0+sUhFFPcu+PoS7FIjVe3nVmbraFE0uma/GgXILH86So7+2WPnJOQRnv9lSTkgBloibSxED1gAqDzjvL2gt+U+Iuc2XyTGEDxyvgGvrOtx/JqR8oIapFid1FNzlWthSMEZwXpQ/gw+iYMAOvgVZHpMgdbyCkvpIYzJgr2mRu3gNU4I8pj6eJh9nmvQT1z8BZ0lsvrsQk7gzhQ==;3:W95ZEZ7IR/LH8jY1PR5kGj8HdakxAfM5MrCWrClmpGrKsM81kBHclKGin/T/Huc6vm4zA3dGjx/clLW9q+HWPYiqg8NnNQB+1Lw0ymLvqnqKKouHORS69m1KG+sQPvSWTmd7gJPpfMPHsKZBzgZ4+03qik23J1TXOS8hHwvpIPKcCX+wZHcAMbI2I18LiOQLUgO95idXMH+rtLwSvjkU1xuvoSF9aBbeqlRPUlofg3ZU5+SZoIL0fAcJ+YtHZ9oLuqnkonCHgvvmf1OH8YyFRf2r6IsamQsKcJF2+Ix/nmU= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1192; 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:BY1PR0301MB1192;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1192; X-Forefront-PRVS: 0575F81B58 X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1192;9:xC61h8WCG94dbcBHqA5P+HuoeZLK9nl8QG1di9YQNkvQodGpVdK30AJ8aUIb/Y8pTay9Id0MUNyNPj6JFa7fqpJI7QLmPm4CJiFHaLWxgJYX7YePVOMMHrNkM1QaaEV56vneL614dDpLkNojdMx4s3tVqd2B8oJZfYTFPTPFyNpRUX2gE1TJRfNNWcFpYVRa3uaWCJysOHWtq1U2SPg0mTftn+uIfRTRK2sRIYZgCMD99pCYwuoi8OgL9TNzAvjHqmK+ObWWNfobwEoBMggs4fpWARG9Hum3/XJPDJgDnEsCccXuRxxtYYeIMVdbaXEubZ5pVnvuhEdjoJrHh0/5YMgAt1dbYHvfyMjapeA1KBBfTnTRmWNTJrGMLmdZyG/nFV+Yfy8bCSEMgm5l7vhX5nM+c/rG59uAlyDwSbGP3ChGLXQAzm16/EuU1qQcg4xZdfArP9J/rhdJ11CjmfIJ2Qmb2L2TSSmtiBiwl3GVDHq3K992NXr1bzDQtQ+PeIxNqnBvNne/BdOj3rgLilBJzQBN48aKoVbrUwIgFqRc4LDZI3mnLG/hcgFHycXoVvwDXYNMmfooYuLqdiYAJ17vZaG8bZN+8Go5WT8fR2BNwrpzFPj4P8yPWr266ZouQ7PcJy9JyWF18uPhfyjkWkHchL/2v2ZcDZAhIpMWOZ2D5E8VBp43C+WzrxmGxI33/q3p5nkyGSHL6OgvIgl6+zRS0CpLdhIsAFMa9dj6ptKQD7iq9jU8ffBzGbZMxKQJ3bjNkpPHCW11Te1Wp6zNHs/fQOP8dLh6F6w/UQQ+Y1Ye52nAN2z0Bs5RdnDS99gUsdiVdYigvHxzXjmQ2pBW8PRd57nVTEl6mDfXdTYBxGrBtbq7zMh39wSri/7+TELn2uMj7hlSNbODSRutoZUJ6r8qbroXZleW5c/7ihvt0p7hk7c= X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1192;3:5RhuXZmAkxT1oQ1iq13EOvGyPY9OhV7Fq0nzRu3D9QM5fn9aVAZAOyzYu6HvCfa6uQwD9PXia7ribrH5EoeB8zO5+F5SEwnFk8TAnZHW6GtM9CP9t8IbO8Tx3pWBdh6XdQMIK/EUAWOW4AKPqf5TsA==;10:pR70oXii4dxeU5yqMxeYFxfHCaKKGyaG0QoAMBdB/+RcYkfzP/WMSShU+yvk+RUZ6fAtFErcRF11PL/tQ0pDHG9ziHSrKiHcKkmVgJqrhaw=;6:LCPZPmmRTIotkNjtjOa7vniPJQJGZf/s4fA+rl/8HH1Btv1t7GeyOwOezBJocPw3 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2015 08:24:29.2784 (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: BY1PR0301MB1192 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1510 Lines: 37 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 --- 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 -- 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/