From patchwork Fri Apr 27 11:47:18 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: 134590 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp617720lji; Fri, 27 Apr 2018 04:48:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo13fQVp1eD9LNcFFSPale1jfyvPn07A5ixlClMj27Waf8DfibC4/HmeFEb2TC/CPD0E2kd X-Received: by 2002:a17:902:868b:: with SMTP id g11-v6mr1969095plo.305.1524829689087; Fri, 27 Apr 2018 04:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524829689; cv=none; d=google.com; s=arc-20160816; b=VX6FLTUSiSfDWtiU+LOfpazG9gxhAsbTfrueA2G5kt0X6M2rE+dyh6tL97lHxM9vSx MNVGVrn6Cj+fXFRy8qCeZviRxuD72S27SP8uRRJx6YSwcFyE2eEc6AhnXgfFq073T50N LPLoCvnQJPfKVCcxY7w8wFMcLKSV2qn0OBinuyT049XHc8RRR4myvjX/qYXZ52Xq2FVR 7A3L3rV8CN3Ghnd81eKsCrklodo7yMu5WUtmH7RA5N2/fzjd3WNF1oTxja2GDP9CPBq5 1CMqdHtkFs0iS0KGaLWtsL50d8UXXDlV2JBZH+bXe8jYDky+PEoYptS7tSpS+X0lFUF3 G+xw== 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=5pVTaGs65GMidl9/GsFQUSSI+qn/2OOqeudcQfCD2/I=; b=ahHBlMIMB1qyLTZrdtgH3iDVXilvIRK5bs/03iZfxFyKiHrcvGU7oI9ePBOO2yf8er FRS2aaLi5kI7p7zGA96YSoasHixvtWtOZ5hE/KXmeQ3jtqaqwslTj3P1VLYWvsv5kwez p5ZtXC/fbr9MYioSF9/8xN4OsLre5BtfIQ8aznJtQj8bWWnVnVy2ybjRxQ2IMNMyWPkK /cAQjgOyaJziMpX3UAFH/FxeohBTtHvi7affebY4r9DheorG0/R/0dvWeskuxMG2yFY8 pW305dOv950SwTRwfePxNH5woy1HiCdAG9z5w1rma/Z15fdzKmYVpC+aoUKx5jtEzfbq dUnw== 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=tzXUVZDl; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 j63-v6si1083786pgc.474.2018.04.27.04.48.08; Fri, 27 Apr 2018 04:48:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=tzXUVZDl; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1758058AbeD0LsG (ORCPT + 6 others); Fri, 27 Apr 2018 07:48:06 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:46580 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757530AbeD0LsD (ORCPT ); Fri, 27 Apr 2018 07:48:03 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3RBlwiN009529; Fri, 27 Apr 2018 06:47:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1524829678; bh=7RKtm3IgZmFXw1m8UKpmbnoldiSremxlXF6AJdShW9E=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=tzXUVZDlAaomZfwRXLuJkayQWgChqqzxNkuQqc4nH0eEhrZ6JJGiKal1foxf9R8G2 vv21X38wt+ChzQQjOGVr8OQRd5JOGG6Rm45WaYqA6cwbnk6XCAumBRHKVVz2QRY+NX 2/VyJTPBmOLCsjQ5r2rPSt5yY5hE1A7UWhVVlXCM= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3RBlw6d015129; Fri, 27 Apr 2018 06:47:58 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 27 Apr 2018 06:47:57 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 27 Apr 2018 06:47:57 -0500 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 w3RBlRSN014207; Fri, 27 Apr 2018 06:47:55 -0500 From: Kishon Vijay Abraham I To: Ulf Hansson , Adrian Hunter CC: Rob Herring , Mark Rutland , , , , , Subject: [PATCH v5 09/14] mmc: sdhci-omap: Workaround for Errata i834 Date: Fri, 27 Apr 2018 17:17:18 +0530 Message-ID: <20180427114723.2687-10-kishon@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427114723.2687-1-kishon@ti.com> References: <20180427114723.2687-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Acked-by: Tony Lindgren Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-omap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" 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 d5c1a9c71f95..2232a9974b21 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, };