Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21354803ybl; Mon, 6 Jan 2020 03:02:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyVlvTUQGs62qSN0U8Q4R+KR/03qMINfGxmvLpp5xpKfhUwQEkOICdwGP02U6wm0qb7CYVB X-Received: by 2002:a05:6830:2099:: with SMTP id y25mr110764284otq.87.1578308537381; Mon, 06 Jan 2020 03:02:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578308537; cv=none; d=google.com; s=arc-20160816; b=BJN8knNEthnh71WqWkBhEmh4ejjodFQpFrrHHjvUVJtXVaSll7X2WYnMY8x9LxZLLZ J9JFra/ExZTnx4eM5rNjd8l/vHqK+hgyu9Gydp2rBs5Zgw2KV322OWMRAgsAX16RwSk9 /xDycBM5VKzs1grPAVvXJwQYH5ICM03nmJhqiIhW4a0aBBaoSu70w+P87l12f+cw2TqK PwL8/x0ofM6cGRpwLAa6v3aaAXJYMYRIPyOBntHVjxkD0V71l0qMW+T1A6jTKH7cSfkN UHr1rKga1brgkuNfa8cOLUNePZ7NMhbB2OYfETxQpIxYVqiqNyHDv+zBup48VbJhcyOQ AFlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oXVdXQ9prB7weyzjMxgSgloYgv+iQVU79j23bRLTqSE=; b=sUvnrCef2pWYvHVkYE5sYbXfA45M5HBw8HT84vxLdYf4IS6QoJfccBK/jd+wuY21uh mfyJmbLg8Pjjiml2WdvYY6pZCOKZCNiRLPuF2nuLJHOm27MbEleC71AcZrkqA4J7gMn8 D1tDFD/Z5IP8Osg5o1rep9JOAliscvUXFk2FzIhE/4WAF6X9SNSQAFvQN4gTbMkruXTt qwrP52Fa6XdfP/osfXXKXI3slj/BjQpup0d5IcSZI3dbiJyyamN0D04YBkzofDoul1je gwNs7eV/wyY3+IC1R3fHXcJX2PnZWrdqVQJKCnIKAFb0oU0AW7sNoGH5bu2OsbEg6VqP VwtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AHUA7yhy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l18si35391686oth.236.2020.01.06.03.02.05; Mon, 06 Jan 2020 03:02:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AHUA7yhy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726788AbgAFLBG (ORCPT + 99 others); Mon, 6 Jan 2020 06:01:06 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:59244 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726608AbgAFLBG (ORCPT ); Mon, 6 Jan 2020 06:01:06 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 006B0xYA071053; Mon, 6 Jan 2020 05:00:59 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1578308460; bh=oXVdXQ9prB7weyzjMxgSgloYgv+iQVU79j23bRLTqSE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=AHUA7yhyLTJdbMRJHcpp8FLZRdxR8rUP4vRTrmongtVRlAk4dbVeBdL6GH7HYBdWj pbMt0CSwvjqgxkUBltNjft9xTgoahV63vMwI76T23hQtLtko3rK0H/3afLg59pshgR 3sCVfOYuGRNtKMCYav6N0AlO2g5Fn5mGmXhxQ+0o= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 006B0x4i063673 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 6 Jan 2020 05:00:59 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Mon, 6 Jan 2020 05:00:59 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Mon, 6 Jan 2020 05:00:59 -0600 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 006B00Jw007044; Mon, 6 Jan 2020 05:00:53 -0600 From: Faiz Abbas To: , , , CC: , , , , , , Subject: [PATCH v4 07/11] mmc: sdhci-omap: Disable data timeout interrupt during erase Date: Mon, 6 Jan 2020 16:31:29 +0530 Message-ID: <20200106110133.13791-8-faiz_abbas@ti.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20200106110133.13791-1-faiz_abbas@ti.com> References: <20200106110133.13791-1-faiz_abbas@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Disable data timeout interrupt during an erase operation Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci-omap.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c index 84d85aa743da..1f05c8e98d62 100644 --- a/drivers/mmc/host/sdhci-omap.c +++ b/drivers/mmc/host/sdhci-omap.c @@ -7,6 +7,7 @@ */ #include +#include #include #include #include @@ -827,6 +828,15 @@ static u32 sdhci_omap_irq(struct sdhci_host *host, u32 intmask) return intmask; } +static void sdhci_omap_set_timeout(struct sdhci_host *host, + struct mmc_command *cmd) +{ + if (cmd->opcode == MMC_ERASE) + sdhci_set_data_timeout_irq(host, false); + + __sdhci_set_timeout(host, cmd); +} + static struct sdhci_ops sdhci_omap_ops = { .set_clock = sdhci_omap_set_clock, .set_power = sdhci_omap_set_power, @@ -838,6 +848,7 @@ static struct sdhci_ops sdhci_omap_ops = { .reset = sdhci_omap_reset, .set_uhs_signaling = sdhci_omap_set_uhs_signaling, .irq = sdhci_omap_irq, + .set_timeout = sdhci_omap_set_timeout, }; static int sdhci_omap_set_capabilities(struct sdhci_omap_host *omap_host) -- 2.19.2