From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,T_DKIMWL_WL_HIGH,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BC18C072B1 for ; Thu, 30 May 2019 04:50:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6483D25D13 for ; Thu, 30 May 2019 04:50:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559191801; bh=sTG8xHWnywbndeLRxXkdSjYXkgYJTnlYbd1AZr8ln0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=2TrNfNNvX9TW7+WDPCF8lC+1ZDsz0jdn5AgkCYKur9kZijF2G+a/a2Fsv8njkQXfq 71jaWsEFzn5HILzQ00deXciTOr7Z3FJ4C1nc6N+hHZ1y4a6xf49RiTBx2GBCuVN1ck B9Lwhhi1msoEA6yVA6x6tSeNrwZ1/obJEh7hF5Oo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728373AbfE3DLH (ORCPT ); Wed, 29 May 2019 23:11:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:49876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728355AbfE3DLG (ORCPT ); Wed, 29 May 2019 23:11:06 -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 F1EBC244EC; Thu, 30 May 2019 03:11:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559185866; bh=sTG8xHWnywbndeLRxXkdSjYXkgYJTnlYbd1AZr8ln0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f1Z8XWg51kGCKlegohYiCoynVzuYjcIdt1EEahtpnV+D+bYtTyvgiuVRi4Hlhm+fZ v5GFLhFzf7hMWGT0zivo7i+CDFqijrtUUbPErrTR1JxrBGtRUr3fafXTaIxjxjJLnp Tw3L6pD4n6DX+EK9a5pXkZUiiunUdNt3OBjb7Mg8= 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 5.1 205/405] mmc: sdhci-of-esdhc: add erratum eSDHC5 support Date: Wed, 29 May 2019 20:03:23 -0700 Message-Id: <20190530030551.518488537@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030540.291644921@linuxfoundation.org> References: <20190530030540.291644921@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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 4e669b4edfc11..9da53e548691b 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -1074,6 +1074,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