From patchwork Fri Nov 23 09:25:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huang Changming-R66093 X-Patchwork-Id: 1794641 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id E6E3E3FCDE for ; Fri, 23 Nov 2012 10:12:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161087Ab2KWKMH (ORCPT ); Fri, 23 Nov 2012 05:12:07 -0500 Received: from co9ehsobe003.messaging.microsoft.com ([207.46.163.26]:51953 "EHLO co9outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161082Ab2KWKMG (ORCPT ); Fri, 23 Nov 2012 05:12:06 -0500 Received: from mail112-co9-R.bigfish.com (10.236.132.238) by CO9EHSOBE008.bigfish.com (10.236.130.71) with Microsoft SMTP Server id 14.1.225.23; Fri, 23 Nov 2012 10:12:05 +0000 Received: from mail112-co9 (localhost [127.0.0.1]) by mail112-co9-R.bigfish.com (Postfix) with ESMTP id E4DC2C0029D; Fri, 23 Nov 2012 10:12:04 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1de0h1202h1d1ah1d2ahzz8275bh8275dhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h16a6h1155h) Received: from mail112-co9 (localhost.localdomain [127.0.0.1]) by mail112-co9 (MessageSwitch) id 1353665523419291_13767; Fri, 23 Nov 2012 10:12:03 +0000 (UTC) Received: from CO9EHSMHS029.bigfish.com (unknown [10.236.132.250]) by mail112-co9.bigfish.com (Postfix) with ESMTP id 600064C005C; Fri, 23 Nov 2012 10:12:03 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO9EHSMHS029.bigfish.com (10.236.130.39) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 23 Nov 2012 10:12:03 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-004.039d.mgd.msft.net (10.84.1.14) with Microsoft SMTP Server (TLS) id 14.2.318.3; Fri, 23 Nov 2012 10:12:02 +0000 Received: from localhost (rock.ap.freescale.net [10.193.20.106]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id qANABwbT030128; Fri, 23 Nov 2012 03:11:59 -0700 From: To: CC: Jerry Huang , Anton Vorontsov , Chris Ball Subject: [PATCH] SDHC: support command with busy response expecting for TC Date: Fri, 23 Nov 2012 17:25:03 +0800 Message-ID: <1353662703-27594-1-git-send-email-r66093@freescale.com> X-Mailer: git-send-email 1.6.4 MIME-Version: 1.0 X-OriginatorOrg: freescale.com Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Jerry Huang The IP verions older than 2.3 didn't support the command with busy response which expect for TC bit set. But after the VVN2.3, eSDHC IP has supported it. Signed-off-by: Jerry Huang CC: Anton Vorontsov CC: Chris Ball --- drivers/mmc/host/sdhci-of-esdhc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index 63d219f..cfabc43 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -177,6 +177,9 @@ static void esdhc_of_platform_init(struct sdhci_host *host) vvn = (vvn & SDHCI_VENDOR_VER_MASK) >> SDHCI_VENDOR_VER_SHIFT; if (vvn == VENDOR_V_22) host->quirks2 |= SDHCI_QUIRK2_HOST_NO_CMD23; + + if (vvn > VENDOR_V_22) + host->quirks &= ~SDHCI_QUIRK_NO_BUSY_IRQ; } static struct sdhci_ops sdhci_esdhc_ops = {