From patchwork Wed Apr 25 12:09:34 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: 134259 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp780445lji; Wed, 25 Apr 2018 05:11:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+uRtX/4PPddwWKR+7G+dey8ekJplp9NlEGO/lRwdhurKSKdbqZ4MtGgNr2L9jQ17Lv9b+2 X-Received: by 10.99.64.3 with SMTP id n3mr23516603pga.13.1524658296311; Wed, 25 Apr 2018 05:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524658296; cv=none; d=google.com; s=arc-20160816; b=eRKHwvzEDPpwLVCtNdNL6WKUrh1xgJ63h75D8dDs9oFikLJTfBDqXtOSRF20Q/E3r0 vP+czFeQMEvKAIhg478SdvMrzkiWGXZwStnbMZ3bkhdxkq/mRm5CU2PyjJB2hf77SEHz /ioRob4aN0utth7ZHqhbpHXE/IrkJdbxXqeKM4FSvap7XjX4vpOTt5HKrYUjRMPp10+L RmBWicRS39BJHxPBTSiAY8x1qHjw5gkk+fCZpWJmO+Fb1qSNi4ujArfNuwvwAxvzJaiS phsX7kVu5d52xfLfcIEkJYC3tPPi0ftE6XC3jxUdZJdRs/mdVAe0ZwfOYxPKcWu/gnyH 2Ljg== 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=lE0rFvQh8LmvK11KU7CGm7udqNPEbRypeqOY4LkZuUo=; b=x4Z9D1tQ0GIUcGTWtJO3JIF9Cj7G++IJqJPRtlS93xjeihogXlGv8+LSG4YQBer3Pq 5wrvU6TIvJbYNzTkeb5r1aLD0CO/kcAeLqOqFCyHM1SbyIg+qbKghVkmgP7kT5dHUgwm HSeqq8KaokTe21c1nmE1/+e/ZwaA/o+QPkORUY3AHphLUeVjMOUe5zpRUvTHSMt0IZSs ln2o0p31XrBt7W/Ni2DLUomcO7dB8yloAC+WeVX7CFk2nwn0vFx3aYK6mehh/zkXrpxY MXOHd0ZLas+Lxp89nkytVhngtKbixRYpuPric3L8SLMGPgv3pM7fhEEQAOWRsFe5YPKC l8YA== 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=QTRdRnHB; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-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 m24si13497930pgn.416.2018.04.25.05.11.36; Wed, 25 Apr 2018 05:11:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-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=QTRdRnHB; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-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 S1753565AbeDYMLe (ORCPT + 6 others); Wed, 25 Apr 2018 08:11:34 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:13761 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753269AbeDYMKX (ORCPT ); Wed, 25 Apr 2018 08:10:23 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3PCAGaf017456; Wed, 25 Apr 2018 07:10:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1524658216; bh=QaxobufYbdR3GVOu0PfjOTqCHhXJ4jfD08WJdhbqKMY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=QTRdRnHBRuLpu1InqvgHFOoWjrgCrtoRZ7qlIcuq5oDLZZcxoLiWkIMrwjgeku6zf SAia1FMRIkDm2KmwOKYilegqnv14cAcAG3gLZxteaQN63WcneD6R/q/v0GeJruDzxR DU7D/ZaTw/8nrWKkeAChOe9nJa04JRcgVBPJrfJg= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3PCAGEq016690; Wed, 25 Apr 2018 07:10:16 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 25 Apr 2018 07:10:16 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 25 Apr 2018 07:10:16 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3PC9hhW009970; Wed, 25 Apr 2018 07:10:13 -0500 From: Kishon Vijay Abraham I To: Ulf Hansson , Adrian Hunter CC: , Rob Herring , Mark Rutland , , , , , Tony Lindgren Subject: [PATCH v4 09/12] mmc: sdhci-omap: Workaround for Errata i834 Date: Wed, 25 Apr 2018 17:39:34 +0530 Message-ID: <20180425120937.29867-10-kishon@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425120937.29867-1-kishon@ti.com> References: <20180425120937.29867-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Errata i834 in AM572x Sitara Processors Silicon Revision 2.0, 1.1 (SPRZ429L July 2014–Revised April 2018 [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/sprz429l/sprz429l.pdf Signed-off-by: Kishon Vijay Abraham I Acked-by: Tony Lindgren --- 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 linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Adrian Hunter diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c index 2d9ea23610d5..b2c54940d032 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, };