From patchwork Wed May 27 10:13:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dong Aisheng X-Patchwork-Id: 6489041 Return-Path: X-Original-To: patchwork-linux-arm@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 E10BE9F1C1 for ; Wed, 27 May 2015 10:20:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B7F62069D for ; Wed, 27 May 2015 10:20:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 38B752069B for ; Wed, 27 May 2015 10:20:07 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxYOp-0004Wb-Qx; Wed, 27 May 2015 10:17:23 +0000 Received: from mail-bn1on0143.outbound.protection.outlook.com ([157.56.110.143] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxYMX-0001pG-IH for linux-arm-kernel@lists.infradead.org; Wed, 27 May 2015 10:15:03 +0000 Received: from BN3PR0301CA0075.namprd03.prod.outlook.com (10.160.152.171) by CY1PR03MB1421.namprd03.prod.outlook.com (10.163.17.143) with Microsoft SMTP Server (TLS) id 15.1.172.22; Wed, 27 May 2015 10:14:37 +0000 Received: from BY2FFO11FD003.protection.gbl (2a01:111:f400:7c0c::195) by BN3PR0301CA0075.outlook.office365.com (2a01:111:e400:401e::43) with Microsoft SMTP Server (TLS) id 15.1.172.22 via Frontend Transport; Wed, 27 May 2015 10:14:37 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; lists.infradead.org; dkim=none (message not signed) header.d=none; 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 BY2FFO11FD003.mail.protection.outlook.com (10.1.14.125) with Microsoft SMTP Server (TLS) id 15.1.184.11 via Frontend Transport; Wed, 27 May 2015 10:14:36 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t4RAESMV006521; Wed, 27 May 2015 03:14:34 -0700 From: Dong Aisheng To: Subject: [PATCH 2/6] mmc: sdhci-esdhc-imx: usdhc does not have missing card interrupt issue Date: Wed, 27 May 2015 18:13:27 +0800 Message-ID: <1432721611-31214-3-git-send-email-aisheng.dong@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432721611-31214-1-git-send-email-aisheng.dong@freescale.com> References: <1432721611-31214-1-git-send-email-aisheng.dong@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD003; 1:2CSQaSLnToOzBKIKkxKy4u1wgAMw9Rw8/3qEIsdY4uIaBjE/WZOMruli2sUWd5gIXubnhkQbGY65tmuA+7PQFMClgtPRgu3Uw16T4RLJrV97LGzfKp0WSKPUKimlg2Ve/GiZMMglpantIqsua7hB5Zmj9zbBb8Eo+4BVlbiiWr6kWz9jNakQIRO53es6hQGEeBZVWn3LCccBe2Qui+tSgzcg174KdcXqZeoNyS1n4AuuKNE6oObt8C5U/wWWbaskrhJaJK/UrPY2XgoaDvVZTyw7zZ5/VHib++9+c42wqJZ7RgtulEBRi1m7jyCrsLKQvg5YY2UKyLPswZxOOaIx9A== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(199003)(189002)(81156007)(4001540100001)(97736004)(62966003)(77156002)(5001830100001)(5001860100001)(230783001)(5001960100002)(50466002)(48376002)(46102003)(68736005)(36756003)(189998001)(2950100001)(77096005)(92566002)(105606002)(87936001)(110136002)(64706001)(47776003)(50226001)(85426001)(50986999)(76176999)(229853001)(6806004)(106466001)(104016003)(86362001)(33646002)(19580405001)(19580395003)(69596002)(2351001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR03MB1421; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1421; 2:WJm9LasiX7pp3Xfz/VfBTBC00kUJjdRVWmhXdrMOS3qfXn0uFTbtB7ikgqO9gJxd; 2:6UM3hCebpQ0Jn9XMMhyt14eJD9MCuMMMwDeMzBxw3PqPi1gljXE5yYoaLoxcxWYzTgnrBOpc23j2Hbq4mGaNcnHCPLyMMUoOG0m/8F8tDsQsO6nlMdqcOCQ0WVzzLFJPC1DwN4zUwqy8KYNt+TVyXitHEXHqXxG4ozAn4oxZxPQLJhlM83/A1tSle96dIcaAsx12Ki3lT5pHaWD0pBG3a+hzaQaLjYPBNjYPLVlVoVo=; 6:Y6ni2pqN31Pva0J3IbM9X3t4VZCt/oUCmFW+7iNRyI+Lmn0e3swXXWmiZ20dGPz5EV0aYl4ZMUfRXkzH1cgfgIRWKheTEMM0c6T5CpvRwcRXvma3dDS4TSGzuHuKAze6PDCJCFWMQwCv1Y2nmHUbaUr1jMlPJMpw7AfetQw5okemgbSUfNDCenxFedv18lLzVP7xZO4prCgV264gLSTgNql6to8bNcU7jX8uczIrQvfAYCc8eWkSh8WC6a13ODyNO1EChpz3PtVa3f8ZLAbRqWqXDNkQiHAAL3mHa8hH/8KqvcmmUeCBNLVmlmP/1WYrTKqXBvUMccGhluw4zlIoyw==; 3:DwUepvoOsFFZY652GzVh27nqHEBIQE/nl8BVcXoQW9+Kj2FX1xmRqEcQxKUpzIkdaQ5hJlC4ztZoWbd5KPzPgeWMZXHY05mwxmah0BUTZR5BW5fJULcCusbSbc3r9LeDCepa2yToEEGGA7N0hyjwbw1iG1oZMfOCOeCAC7LyPiJ5/GuMnZWEqUABP4PRYUt+s3nzufut2x/3hQ95pTjPrskxNFBS8491u2EgjckuGpKbipn5tIOGIqKgA+6a+qrwO+1oJUxOyPs1U3SGJN2OE/E2MkzYK7ELxS/qEWQ7Z5o8UCNA3/Zgq90ZXCwLU9zh X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1421; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(520003)(5005006)(3002001); SRVR:CY1PR03MB1421; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1421; X-Forefront-PRVS: 05891FB07F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB1421; 9:vb7aRGZ3Zutb51TLEm4Gt9mtlOR+0Jhtc11dyqUbF6?= =?us-ascii?Q?USt/6E9cSzKEWzwpckb0l/CQN6oGzNsBULb1Lsk/bkDKg08ubYrHn2z+E+vv?= =?us-ascii?Q?JfFso37B9XVnlxE2IURo9ytanarOCj8IuYAUuxFqciS5b694EaXISZMCOvlw?= =?us-ascii?Q?a67kX1iWpiSYceKOK0rAy3SasqEhact4GRGGfuXa7E+XVsxyVsdyu0bOEQRX?= =?us-ascii?Q?sWRGxUGdxR89bAIfoJEdacOA/b1QcmGfULB8MsHroUYcd8G/CERGc48m2jSS?= =?us-ascii?Q?NFbFE+LxhaGzdfZVzjZheikMQ3U8oj7YbDT/hctoJuwFggty7L1p4LHCJBi2?= =?us-ascii?Q?iwJKlqhSIb9vWznAx/lk48i1RwogNnF3YM2Ph9tyP9GmXOsERkV5MiHiVI7W?= =?us-ascii?Q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l+u7daFF3kxSHDKqpo2Dnp198ZN46IWGDON120m+dlwTrCy4FoMQxqX8JQ=; 6:ygNEwYjKGrHDQy9K6AuhCBRPZ+e8XI2uBXQ4haF9U7uw5x+C10Q1kumzAGtKAwCe X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2015 10:14:36.6119 (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: CY1PR03MB1421 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150527_031501_948100_4EB7960F X-CRM114-Status: UNSURE ( 7.68 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.1 (-) Cc: ulf.hansson@linaro.org, chris@printf.net, b51421@freescale.com, shawn.guo@linaro.org, b29396@freescale.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 The usdhc does not have missing card interrupt issue, so don't execute workaround for usdhc. Signed-off-by: Dong Aisheng --- drivers/mmc/host/sdhci-esdhc-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 0c89293..fda07eb 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -298,7 +298,7 @@ static void esdhc_writel_le(struct sdhci_host *host, u32 val, int reg) u32 data; if (unlikely(reg == SDHCI_INT_ENABLE || reg == SDHCI_SIGNAL_ENABLE)) { - if (val & SDHCI_INT_CARD_INT) { + if ((val & SDHCI_INT_CARD_INT) && !esdhc_is_usdhc(imx_data)) { /* * Clear and then set D3CD bit to avoid missing the * card interrupt. This is a eSDHC controller problem