Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp239440ybi; Wed, 29 May 2019 20:25:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlmM/A37n4a7zCKrJ/FmYxe0xp2VPmwI6p+ICQ1L+Ppk4hryYI1gRKhg7JUAKZz2O7xYsD X-Received: by 2002:a17:90a:350d:: with SMTP id q13mr1639825pjb.20.1559186740808; Wed, 29 May 2019 20:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559186740; cv=none; d=google.com; s=arc-20160816; b=p30lZjVugoEWsvjDq6VfgjegUrM0Qlq0ED9hAT/1Aslj+tFeH1KrNhfB/BYyDOowol U+GuZFvps9a5xovo9VJH8EtMjgbD0DgMnXFhnAyk10v1I7o81vqezukW2chD4FhwuDX4 QkBt8OVFqmmZxP837wiSluMGubOEFROW5KpJN2QM7eJeWn1apovTOdYoap5injoGrq7w PLrGbR9rqX/TQAdVVpYXj3S/tVNHXIK/Un93r9EEY/6ecfEdmdYYuNt6+IQjJLoB4Zmd NyNz23Elq+V1roVxRC2MsIYTQb32ynKC0CX8dn6P8HYYoxqZMuTqVDaE2tILBdAwDtL1 nXsQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8UmLPr+wJXBu6Dpxd+X5s0Axh4A//P7TGv5+vz0HsQI=; b=Hp1J6Lj2hv51/5W5DL2OOXesdzjPv/lLkt56Dn/NWEYgKEdRG+4e0vU1OGOAugX3zL hbm/bojKqwQClh97E7okG8N3grlRMO85fCY+Voy0IvCDnfDAXWvA4GUN9x64Oj/7RxEV 8Xl83TUkM4whHC+R8PN5OyNZ3HJnyxOJP8sWlfulkk8bfX7NOxK70MneC9/C9OJ0Luz/ s09++uIrF8xS9ZII3DpS9CQAqcTWSq/Y71NykvTITPucaFMVx9FaEwBllPhKSqm5ivNZ 3B8bsYIqMI1JeS2bwUp1GHM2pPMcF9/C7PRhObgZA7GQOTTm4j+iEh14s8hbSZnTZtwe lpfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MUvAHyXT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si2065445pgr.132.2019.05.29.20.25.24; Wed, 29 May 2019 20:25:40 -0700 (PDT) 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=@kernel.org header.s=default header.b=MUvAHyXT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733075AbfE3DXh (ORCPT + 99 others); Wed, 29 May 2019 23:23:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:47328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731125AbfE3DR3 (ORCPT ); Wed, 29 May 2019 23:17:29 -0400 Received: from localhost (ip67-88-213-2.z213-88-67.customer.algx.net [67.88.213.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 404742464B; Thu, 30 May 2019 03:17:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186248; bh=MFuOwopmUXbAwpiLYlO/N3fbmfGOTPXUDbJEuT5tAu0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MUvAHyXTvDabfwcA6sw0d5JEWnN4rhhmBqCtAULLrnYvTb7//zjvf6HxZHfqGgaJ5 YfgIk0b7VkoaezTey5ADYkHq+dH9qUDXyOp6VZ6MiKztRZ/XtjqAAmz0QbIpcPEwcO iiLFFLe3mWjaHTqrMAHiwOrAG2HgrKCs/b5OQ1cY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yinbo Zhu , Adrian Hunter , Ulf Hansson , Sasha Levin Subject: [PATCH 4.19 165/276] mmc: sdhci-of-esdhc: add erratum eSDHC5 support Date: Wed, 29 May 2019 20:05:23 -0700 Message-Id: <20190530030535.753114499@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030523.133519668@linuxfoundation.org> References: <20190530030523.133519668@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit a46e42712596b51874f04c73f1cdf1017f88df52 ] Software writing to the Transfer Type configuration register (system clock domain) can cause a setup/hold violation in the CRC flops (card clock domain), which can cause write accesses to be sent with corrupt CRC values. This issue occurs only for write preceded by read. this erratum is to fix this issue. Signed-off-by: Yinbo Zhu Acked-by: Adrian Hunter Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/sdhci-of-esdhc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index a7bf8515116fd..b2199d621b8c5 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -917,6 +917,9 @@ static int sdhci_esdhc_probe(struct platform_device *pdev) if (esdhc->vendor_ver > VENDOR_V_22) host->quirks &= ~SDHCI_QUIRK_NO_BUSY_IRQ; + if (of_find_compatible_node(NULL, NULL, "fsl,p2020-esdhc")) + host->quirks2 |= SDHCI_QUIRK_RESET_AFTER_REQUEST; + if (of_device_is_compatible(np, "fsl,p5040-esdhc") || of_device_is_compatible(np, "fsl,p5020-esdhc") || of_device_is_compatible(np, "fsl,p4080-esdhc") || -- 2.20.1