From patchwork Wed Sep 16 06:36:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yangbo lu X-Patchwork-Id: 7191271 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D68259F380 for ; Wed, 16 Sep 2015 06:42:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E95EC2063E for ; Wed, 16 Sep 2015 06:42:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F21372060F for ; Wed, 16 Sep 2015 06:42:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752220AbbIPGmL (ORCPT ); Wed, 16 Sep 2015 02:42:11 -0400 Received: from mail-bn1bon0140.outbound.protection.outlook.com ([157.56.111.140]:6119 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751742AbbIPGmK (ORCPT ); Wed, 16 Sep 2015 02:42:10 -0400 Received: from BY2PR03CA006.namprd03.prod.outlook.com (10.255.93.23) by BY1PR0301MB1191.namprd03.prod.outlook.com (10.160.195.15) with Microsoft SMTP Server (TLS) id 15.1.262.15; Wed, 16 Sep 2015 06:42:06 +0000 Received: from BN1AFFO11FD055.protection.gbl (10.255.93.4) by BY2PR03CA006.outlook.office365.com (10.255.93.23) with Microsoft SMTP Server (TLS) id 15.1.274.16 via Frontend Transport; Wed, 16 Sep 2015 06:42:05 +0000 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; freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD055.mail.protection.outlook.com (10.58.53.70) with Microsoft SMTP Server (TLS) id 15.1.262.18 via Frontend Transport; Wed, 16 Sep 2015 06:42:05 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t8G6g2Xh030315; Tue, 15 Sep 2015 23:42:03 -0700 From: Yangbo Lu To: , CC: Yangbo Lu Subject: [v2] mmc: sdhci-pltfm: enable interrupt mode to detect card for ls1021a Date: Wed, 16 Sep 2015 14:36:10 +0800 Message-ID: <1442385370-26961-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; BN1AFFO11FD055; 1:1k6NTyL73KMWJqDB/UZQL1SaAxE3IfuawYsupaZChJKrFFabenm20NfRiDz6Oftg+YDVfY342sY10TpCsI2YQUOzXVIxSVlLzLRiz/dx8IKyFAeviQyVkWgfiCdEz4DjJBqfq5rLVNQyG4FaN0A7MJ8QHpvUzvbWf7HQrZ7ajrNaPAQt+ZC5kzkMS2vbI23MwjiwWagpKp9FdF6gTKR4rrXryn+1GEWy9nrlj7EpfgndYWEGjcm6s+UOzeGypTWskMaAsAFQc8j+iakO6rJWqEelO1G4MO8XZ1ZjNurgIPCAiAKKR7ySMMJmKjDOY9zjR1VEA+aN3vcAfDlKhmehBcjuv0pVweb/EiTDPkxyRadXentHFXNvKdyNUZUQNmWVOqP7kC4groDSPhYzTsz+Aw== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(77156002)(46102003)(50466002)(19580395003)(33646002)(36756003)(50986999)(5001770100001)(5001960100002)(5007970100001)(69596002)(5001830100001)(5001860100001)(64706001)(97736004)(87936001)(11100500001)(48376002)(189998001)(107886002)(5003940100001)(19580405001)(77096005)(85426001)(86362001)(4001540100001)(104016003)(81156007)(47776003)(92566002)(50226001)(6806004)(105606002)(106466001)(68736005)(229853001)(62966003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR0301MB1191; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1191; 2:PrcHRoN4uSgokPhwH5lqgN3SLkpDEYEyA/FmpuusGFCiK5eLgo6uhHGyXJFHfaOmHAFC0G/9ADzT7ztwqZa8CGltLowl/58vuAfWCYr8kkXLRz9y8QE1opT4RgqlW8Y+l21kaQAvUtcOMNPrFxlrSx3ZS0dpai81p7c5TQJLqLk=; 3:2m73W0JfkH1X02ZbUuwM/w8C68STr3arlUt7hSveDCTXGBUaE1SEygzYl7q3bkUhMvvrO+YEl7Qyhh/cQYM4kii1x1Kn6RShm9UomFVZnDOPniWbsf6vGGqsoLam7lSWONatc3fB3TfCIlnJf2+zPLqi1HSbfnfGO0eZ8jo5jLWUY8jtfZK0ehj8Ey7v2ht3KRv/vNroOvk3RMtHFAHpfMXqQcCOGPPEobcbd+yw344=; 25:zFAhaXu8i765LTxuAo13oq5W9YYFBVmnwL96+GBpRmaGowYOqFFgqAINUyJZjsqAt8VqAP7VcBVPWnBeUalEDQr7IWFE3WfCmWORt9t0x142ZzGtZB2VbYLLrrdWMCY+6fH4yoJNv8ydXcNTHXqJy4u3R8nc6Vn7DxmarBXYxPFAsclDNvsrSM0mU1+CUc6IcLXVg1XmESMSEa/K6//cHW72haYgZ6LISQUoo1A4BNBTeYdpxWWciCXoK5C1UDrxqP5B2ikirrr/MhiuQJ4P9g== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1191; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1191; 20:Sr2A2IzDYN8HZY8M83zizqfYEJb3T7BuBqAL9LdOY/g+34mzJnYffKtDJAfluCExCaT+gTqy4USMl7tqsSyAJqpNaSEVl+9oNuLVEWqa2xZ3kcHqDcqJoiIVNn+eqy29CPb8Mx4W0A8SNPQGY3dyonfFr1HP9UKnjkXHqgOC4TWmr45vxu8Mskl/ZtXeD65UT6OCFvyaeOhwEDA3+Z35+kDD/WzMS7bQbd+o0rPuoHWmYyoMsZG9LiP9o9/jvXoVJCIz8F1jZaB0GfsbpIIS2ttr6OBMI6MONjPvY849U/h2jUKjfLKTrxC++r9mwgctiDPbH8gkBmizMjv72Ii+H134Fgs2w6h4HpdENoZn8Og=; 4:0fg7/YE+FkVnkjqQvh2r5hAzy1Tq5G9ROK4wjSVT9x343AoWh4PTvQtB6H5k6Cy7tj28JMikb0tT1BFtwBjdUGPdAYndAX+s768NW0+5PukHmq4l8333PDWgLyt/FcdTwYrcxBl2LZE9IcZe9FN1DcC01ZQkli02+51cMNxe/U02DV5a2H5y8Fa2WlvyagJ/zhtNlAmYLhfvc1Zqrbgawii728J7p1WeQYg/0+5dViqVhrfsG0SHC9VWx8bcjhi0sIGA7ecnmQqk6RZ2GRVLpXhYck8yNxEYpxD4ui1Fq/TnolqqUsIzYleOK3bPHbEKFyTQJ2JjDt729k7mSizlDkOh4pLUm18IJE3OGH/IEK4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(8121501046)(520078)(5005006)(520075)(3002001); SRVR:BY1PR0301MB1191; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0301MB1191; X-Forefront-PRVS: 07013D7479 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0301MB1191; 23:8OZzw8HP/5DiUGrmAV/8hlgyOOhkA3ShM068Hkh?= =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GKv+9RB21ZJewOKmwXblUY?= =?us-ascii?Q?hwDsMpP1M3tomdG0JBIWSokjCqoAxWOBCygchH/flzi0Y6HWQETjTb4F7B6k?= =?us-ascii?Q?j9G9kRFGpdHdsdB3YBXOdod7jRu2wTihesDYrrTmSd4h64NjBy5/Di5RWQIY?= =?us-ascii?Q?PGsSCrOJUPUCWKv1Pt47vHqOSbjF7zDMGofNL1UhnIeUqgcmEs3lR3I22LtT?= =?us-ascii?Q?SpEa2qAUftTCbcaFFNUdxCOQGNoWBKuU+0s3FZSdrE+gTK96zO+0w56QqTDV?= =?us-ascii?Q?uW3ixYEzD69QXOTN21yfNQPD2mVcyAvaF0vXg922Hz81fkEIsg4NFHGj2dA?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1191; 5:ZSoJFVE9yXc9/n0NcM/0waFKVDh2xV8QEqWf+CeE5PhAa33KTqkV2mzJCAZd4DvjwCtJWLl1ecNkg4jOleO2xp5Lf0/tW8xKkRM7Iw6dGxTPXLZnzJPjYKwndOPFrCGg1oKH71y2rhLCXxsFdbN0yw==; 24:4a7a3gLsszR1hSI0r1IgZV9NxlitresLU10xxL8MqL4l5FhAZI0ZFFdW5vKJ0KjdAmFns1HFbRSPqP4Enbe735K/NEAeTM8wpFI1U6P/1vg=; 20:OX/tfYZoMRzJPT/s9sKBYljSThtUh5mvUSu1TeGKxx2H/YBuqzN1jq7VfcOVgr7SisXH83UFQgk7HP4caapDCw== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2015 06:42:05.8944 (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: BY1PR0301MB1191 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Enable interrupt mode to detect card instead of polling mode for ls1021a 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: - Modified commit message --- drivers/mmc/host/sdhci-of-esdhc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index 653f335..2a54dbe 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -371,7 +371,8 @@ static int sdhci_esdhc_probe(struct platform_device *pdev) 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")) + of_device_is_compatible(np, "fsl,t1040-esdhc") || + of_device_is_compatible(np, "fsl,ls1021a-esdhc")) host->quirks &= ~SDHCI_QUIRK_BROKEN_CARD_DETECTION; if (of_device_is_compatible(np, "fsl,p2020-esdhc")) {