From patchwork Wed Mar 7 13:20:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 130885 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp5175712lja; Wed, 7 Mar 2018 05:21:41 -0800 (PST) X-Google-Smtp-Source: AG47ELvqaJLRHHStXKTaQLPzW+82BdEN6S8C1UzdV98A4NPUBq0PF7g+eTV3Z9LitUYKkH45vayp X-Received: by 2002:a17:902:6909:: with SMTP id j9-v6mr19938473plk.447.1520428901203; Wed, 07 Mar 2018 05:21:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520428901; cv=none; d=google.com; s=arc-20160816; b=G2KOoGnXaKp97iWYQwejy2U02hggUD9VTb1E27RALgSMs/5ejE6A3Kmun67h3AD9jm d0l8upejUMCmKUIkB2r8Wfr7dnIIpBf5S6fPX6CniagGwMT9BSStwUih+UPY7rtdFq6b vZJf1jgyafcMYrDoZUchvdkeX0SvULRqDDbpEq5scS3YLsEnw7D08iFZtNzmxpUa2CFm 725kKZCZNpd+82X6FL6HLxIqpVj12EyaLZZATuyCai2M3pMIXIDrGWML9ClFBc+NEnCm O+qi+Sc9ApklU+7MRSmbyM/MkV1RjOCSsZBJzYnmKMVOSN1zz6U6lkc4XErFBxUekJAr sDoQ== 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:arc-authentication-results; bh=9OTRK2fBui68rMAGdp/uMDTW13O8eFWdaOyxMU7SQwQ=; b=c8JaOzfpvqgI3rzJeaxpbTMzl7AhKglIgBv9IT3SOIMs2L6rJFY9fttz0UCahRxxe1 E5SL0PiRVKxcpFQlHPEGIS9wkY+yuaB9zn0ZwPt/R6QLMVpgnHDD0yNhEuipDruluCCe xKhM/1wgdUK8xFLHf5vD5rRDF0AMch67j6tUrXQpTUimhpr7dj8K2orEacw9wLkXXTvD lhUqLgSXwPXEuP20hnJduHC38y8ajYQ4URLffOG6M1kHEtdeOUMv5TphuprbBL36FOFy hbWr72pXTWqVC2y8zmzpg+qeUkqWwKumBoK49S633lDjP/sbhOO5K8S0W64eRF6BMg2f bgRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=msMcLP62; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) 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 c15-v6si12786777plz.630.2018.03.07.05.21.40; Wed, 07 Mar 2018 05:21:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=msMcLP62; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754562AbeCGNVh (ORCPT + 5 others); Wed, 7 Mar 2018 08:21:37 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:62598 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751220AbeCGNVc (ORCPT ); Wed, 7 Mar 2018 08:21:32 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w27DL3CN004088; Wed, 7 Mar 2018 07:21:03 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1520428863; bh=oknaN+wDvhVV9sjwzCYU0B+jB+fYT088bamcQoiuRHM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=msMcLP62Jp0H863JBJfKIheHyqo/hOL7zSBQsMtpJn5lvTYdYJUtGU88drMUPowJD cTUD5LL7R1Q2+WbaprXJpvMEh92xoeNXZcfXgxr+p9cE+tnFfZQBJ8eL69kPJKF9Vx lVCo91YyGO7PSjg4IB/7OCzz7X1LzAVX59H7nZdQ= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w27DL3Hk003819; Wed, 7 Mar 2018 07:21:03 -0600 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 7 Mar 2018 07:21:02 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 7 Mar 2018 07:21:03 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w27DKMnS018331; Wed, 7 Mar 2018 07:21:00 -0600 From: Kishon Vijay Abraham I To: Ulf Hansson , Tony Lindgren , Adrian Hunter CC: Rob Herring , Mark Rutland , Russell King , , , , , , Subject: [PATCH v3 08/11] mmc: sdhci-omap: Workaround for Errata i834 Date: Wed, 7 Mar 2018 18:50:17 +0530 Message-ID: <20180307132020.30951-9-kishon@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180307132020.30951-1-kishon@ti.com> References: <20180307132020.30951-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Errata i834 in AM572x Sitara Processors Silicon Revision 2.0, 1.1 (SPRZ429K July 2014–Revised March 2017 [1]) mentions the maximum obtainable timeout through MMC host controller is 700ms. And for commands taking longer than 700ms, hardware timeout should be disabled and software timeout should be used. The workaround for Errata i834 can be achieved by adding SDHCI_QUIRK2_DISABLE_HW_TIMEOUT quirk in sdhci-omap. [1] -> http://www.ti.com/lit/er/sprz429k/sprz429k.pdf Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/sdhci-omap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c index 314dbe4d7412..87206d2aaa77 100644 --- a/drivers/mmc/host/sdhci-omap.c +++ b/drivers/mmc/host/sdhci-omap.c @@ -715,7 +715,8 @@ static const struct sdhci_pltfm_data sdhci_omap_pdata = { SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC, .quirks2 = SDHCI_QUIRK2_ACMD23_BROKEN | SDHCI_QUIRK2_PRESET_VALUE_BROKEN | - SDHCI_QUIRK2_RSP_136_HAS_CRC, + SDHCI_QUIRK2_RSP_136_HAS_CRC | + SDHCI_QUIRK2_DISABLE_HW_TIMEOUT, .ops = &sdhci_omap_ops, };