From patchwork Mon Feb 5 12:50:25 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: 126858 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1944367ljc; Mon, 5 Feb 2018 04:54:50 -0800 (PST) X-Google-Smtp-Source: AH8x226BFScWWEv0Qc8CLnrLxCyj09XmKDFqZ/RCqioajqkoCzsvUrTeeOzep7x5VC0l9urLetgX X-Received: by 10.101.83.3 with SMTP id m3mr4568352pgq.396.1517835290395; Mon, 05 Feb 2018 04:54:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517835290; cv=none; d=google.com; s=arc-20160816; b=lZzBGzjIMNjPAp7OnsbJ8hnXir+a8uqfkNsyOmwq5A/VukhsDTVqAtrwDJE4LMpv9y xwKGpnxArWzMkqpxTWK5AL9XmvfcYCDFTXl2aeN0be2QXwLsnxvpLQvou2Nm+jMVHa2o 933J4fhP4BrFo8rVp6A7ilr6PGMkVq90+rFgSbWm5lQ72aPsmjclGKr7El8Hi1jEYJlT nD43VZ8Z8W80k0ZEvC9soBYhvk7uEcqCl79lsMAl9KO68iaqmCKC8S6Jr9hRvcPazkNf VZ4I4lcl1641ryaubQ7tnTBbqNPqmlPQRTasNWzU0GDPe1QZb0UocW7pW4lapkw8DdXr GCBQ== 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=KVhMaY6SG0Uew8mZIK9ntHuDxq1sjfhmM/n0VRmElJA=; b=0wFv7UKlVkhN5p5wP0AxZM2P6I7A1wCz7VOJfQg7Jyy5UeU6rZBKvKgWmcrjhfYU7Q xe5cAI3axVglVoDFTxfl3agYqN5t6yxNfrw834y+121O3kBKmr06gpWUDoJrPWgcQ540 gr9FB2jT8/8CIZBU8QkhPpi9BrUZwQoH4Uly6CLITmuTVCiS5D8sCRU7MeL//jjDRSTF OLo70citHwBrdEGftPQq+hqiCoX4HmLOyD+wZa0CvBzImKucVKNKWrxNOwxXjlVzHhvg F8lRFcahNT6mRVFv6dYe37qjw8osd3N+NmmWf9S4HgK3usqzbz9ISNnV8N9KYYgYmZf8 CYtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RXVtjkBu; 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 15-v6si4965935pla.23.2018.02.05.04.54.50; Mon, 05 Feb 2018 04:54:50 -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=RXVtjkBu; 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 S1753229AbeBEMys (ORCPT + 28 others); Mon, 5 Feb 2018 07:54:48 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:29267 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752891AbeBEMvt (ORCPT ); Mon, 5 Feb 2018 07:51:49 -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 w15CpOql010715; Mon, 5 Feb 2018 06:51:24 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1517835084; bh=rGHgbOdfFQiOyJZ7o6bv4I+8yk+un6WuJGmoVI1dnog=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=RXVtjkBuBw6J4sJVH5hDU60EH/T5GxKuKBERyo7m36SXtkSz6ZZBiv0Cz5W6SaaFU eEIL+4JyPRi/SskjMnFwnSxbJe+CGkYua7t1xlUTkk59vw8N9ZJiwUs3eaHahtlikB ct1Er5v+5/MeQxm7sWzVtOVHLXgVLaWgtGV5ePFM= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w15CpOxu007722; Mon, 5 Feb 2018 06:51:24 -0600 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Mon, 5 Feb 2018 06:51:24 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Mon, 5 Feb 2018 06:51:24 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w15CoaGh023963; Mon, 5 Feb 2018 06:51:21 -0600 From: Kishon Vijay Abraham I To: Ulf Hansson , Tony Lindgren , Adrian Hunter CC: Rob Herring , Mark Rutland , Russell King , Kishon Vijay Abraham I , , , , , Subject: [PATCH v2 12/16] mmc: sdhci-omap: Workaround for Errata i834 Date: Mon, 5 Feb 2018 18:20:25 +0530 Message-ID: <20180205125029.21570-13-kishon@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180205125029.21570-1-kishon@ti.com> References: <20180205125029.21570-1-kishon@ti.com> MIME-Version: 1.0 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 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 diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c index c2570db3f7a2..db487b77fbcc 100644 --- a/drivers/mmc/host/sdhci-omap.c +++ b/drivers/mmc/host/sdhci-omap.c @@ -714,7 +714,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, };