Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7623768ybl; Thu, 16 Jan 2020 02:53:14 -0800 (PST) X-Google-Smtp-Source: APXvYqyZOpK7aT6T2Vyt0gE/u3o3lcyR1xhUr/08BNnUbK5nBdFhVxxlvvoBBirj433bFTkhmlBx X-Received: by 2002:a9d:748d:: with SMTP id t13mr1434141otk.181.1579171994397; Thu, 16 Jan 2020 02:53:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579171994; cv=none; d=google.com; s=arc-20160816; b=Ow/dtFxZahJWdMWSp0jKYQrDGqy9Oqoc5EeoBJrG9fF8MDJYyMP9jdo7ysvhcLqsXZ eAstw5hrEY9qT87BJMBHI+gLGlg+D7OegrWtLfdOLHQqI11xWxsxVzeTveNbtrjFbLUq YMc11rkOgLGSLkSwFMvnLwq5DxbYzrId7qqA2h0tmJtGju4BHRcAVru7FxafAEsUm6G+ QMzwMId3cNIlnzUAp+BhJhAHk00tSr4L//ryvIFkQ/4hvvZybAEOElJ6eU6xgT1zpLat F82/d7E2fxPozmWuNeoTNncJRDFxK6YwfsM5v1UKovZOuRiyFdTrnFEo4useRYYG3dXq bXBw== 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=F/6rZF0jUMlr7gIRfUkDAUALSigMHNZOuD8A7HSCWE4=; b=AjYokI2P4ln6WAlYPAsIXVwr/Pyp3T4Sk5upPIQc8NZ8/J2FxD4NZrfCZ1EG0Bo+Z6 ef/NabHfSmvzzbwxvvo+nHOKH3SKOoPAB/mRpu+Y51KKYYb8GcplSXrW7jvVdH4BXA1B k8Dsg3AHGTbDLxkMPwGavovXOBxpq/hYPiVXliVLV4VfPoS5uCW4cvUSif6lcMT0O6iW ttsT8/bKERPoT4a7ylwksuaT8+l9rZMyXyNgse0sMdNRFiXHL3UlbYUEqkxLj43eXin2 J+jh37PbLQR/GXBUu5p2rJDSqrebsSRdLt1QFcHGWP7Z6cUikAsmmnhvhdVmHqocsQL4 rCMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=uoxVEeYA; 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 8si12378159ota.266.2020.01.16.02.53.02; Thu, 16 Jan 2020 02:53:14 -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=uoxVEeYA; 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 S1727018AbgAPKvF (ORCPT + 99 others); Thu, 16 Jan 2020 05:51:05 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:44864 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726991AbgAPKvC (ORCPT ); Thu, 16 Jan 2020 05:51:02 -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 00GAos1g050227; Thu, 16 Jan 2020 04:50:54 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1579171854; bh=F/6rZF0jUMlr7gIRfUkDAUALSigMHNZOuD8A7HSCWE4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=uoxVEeYA2qSxOJsBA7915BJV97xELyJFZg+oDsysUAxx/JWHvGwhz4E6DI0DMqiXW 4sxutxWJ6hC8pingqqA7PoqjSN/cO4G1nIioOEwkBUJfdRUvKNQ7c7S6mMKzZF/ltN UY3PuqG74GnuqqJE2Lsm6ATau5pkiyic9ysjvFrk= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 00GAos2B088364 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 16 Jan 2020 04:50:54 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 16 Jan 2020 04:50:54 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE109.ent.ti.com (10.64.6.30) 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; Thu, 16 Jan 2020 04:50:54 -0600 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 00GAoRdZ000589; Thu, 16 Jan 2020 04:50:51 -0600 From: Faiz Abbas To: , , , CC: , , , , , , Subject: [PATCH v5 07/10] mmc: sdhci-omap: Disable data timeout interrupt during erase Date: Thu, 16 Jan 2020 16:21:51 +0530 Message-ID: <20200116105154.7685-8-faiz_abbas@ti.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20200116105154.7685-1-faiz_abbas@ti.com> References: <20200116105154.7685-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 Acked-by: Adrian Hunter --- 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