Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3573100pxb; Mon, 24 Jan 2022 12:32:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdMEef6y5PXZFmtt4R0G70QPSemrZHvlrdf0jiq6S6lJH19Ih1StWDK1GG8Y5c7qTuGmln X-Received: by 2002:a63:8548:: with SMTP id u69mr8155985pgd.115.1643056360775; Mon, 24 Jan 2022 12:32:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056360; cv=none; d=google.com; s=arc-20160816; b=H4cZl8HZ1/0RDEQR4SX9J4+goKm+XFuO0XdWzyaYcR7NrVirZDs681cNFKts3F+sI+ AdG5cohDypARupgng/DEyLw/RV8hrAQmGr2bwhoXaEcFEP9qx0K6HCGkC6URbnzUujtW U71GCGMhbWh8ty88vS0GBSWEac0teAOPsr0nFjYqaj+Z1BiTROWCQzYKX5oW90yZk3AZ /e+twBHvvAOqHdZ8nW/8K5jiMNuf3f0dWo17G+Y5IyO8laelokHKaJWnU8EpbuelmI+h OerUj9hiYIOi+YfhO7bsHjqIP3TXQyfaKLv6fa7AADHCmuRkDqptOjV06dzXvlU8O1R1 /6FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=q+USdngJqSRzeND44TE6Do9B6IZtNFLKg8/OBoLrqf4=; b=eZwM+Ji/VIyZxlfcMLrM8Q22XZPCACgEcQm2Qwon6IWHgyrmv317oQwF+LXvbUjX+M Opor/YzbC0RhomHhYgwX+uLJ9L6kuhuOBoh1t1bEBH0BhbH2aonU4iPLokCpP8g/iGz2 EHxCo+JIbnxQNmEh2r0GmTOXO5rrPWvyhMEfBlVRUtgwgPdx+N3W1rlmM8M9J45VX+HZ UPXJxaJWGHT+UocLHozymIO6uVx2eCHryKupxCVIg1ET+7njtg1TVOvz105wimK8JPlp qF2HdwLYF8nmEzQf9CaBoC7RS7EbaJdibX6CyOC5q3hcPKa9f4/msfGPGK6Z14rKf3y/ jz8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IDL9ryiZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f64si13842960pgc.77.2022.01.24.12.32.19; Mon, 24 Jan 2022 12:32:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IDL9ryiZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354918AbiAXTjh (ORCPT + 99 others); Mon, 24 Jan 2022 14:39:37 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:60064 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345636AbiAXTcl (ORCPT ); Mon, 24 Jan 2022 14:32:41 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BFB07612A5; Mon, 24 Jan 2022 19:32:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1C39C340E5; Mon, 24 Jan 2022 19:32:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052760; bh=VKtWU7N1EdLQFZ82cUPjVOMgCStG3PuUh+WUdBvaBIg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IDL9ryiZ5UapeP9g2Mv5Pcoo95Eli7SDSW/MSaCnweiMiZRgHhnCRNvjWyBRyRL0p qSdchBxS0xhBHZsHhsVbm3kbF/dHjgVz5lg0xuYiWnIYMsu/InYO/PUd/RjjHm8SH1 sracNhOaNsphrRy+l7dgRdMlQ6rK/YjrjkQrULR8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dinh Nguyen , Borislav Petkov , Michal Simek , Sasha Levin Subject: [PATCH 5.4 164/320] EDAC/synopsys: Use the quirk for version instead of ddr version Date: Mon, 24 Jan 2022 19:42:28 +0100 Message-Id: <20220124183959.233834958@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dinh Nguyen [ Upstream commit bd1d6da17c296bd005bfa656952710d256e77dd3 ] Version 2.40a supports DDR_ECC_INTR_SUPPORT for a quirk, so use that quirk to determine a call to setup_address_map(). Signed-off-by: Dinh Nguyen Signed-off-by: Borislav Petkov Reviewed-by: Michal Simek Link: https://lkml.kernel.org/r/20211012190709.1504152-1-dinguyen@kernel.org Signed-off-by: Sasha Levin --- drivers/edac/synopsys_edac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c index 6becf3363ad57..d23a0782fb49c 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -1351,8 +1351,7 @@ static int mc_probe(struct platform_device *pdev) } } - if (of_device_is_compatible(pdev->dev.of_node, - "xlnx,zynqmp-ddrc-2.40a")) + if (priv->p_data->quirks & DDR_ECC_INTR_SUPPORT) setup_address_map(priv); #endif -- 2.34.1