Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3639041pxb; Mon, 24 Jan 2022 14:08:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwtefHmMDjO1fcIlbKjAnsLcEgVJinsdQWcGvB622fWqThWf5TIcnU08N4jMLBR75l5K56 X-Received: by 2002:a17:902:ba81:b0:14b:75c1:573f with SMTP id k1-20020a170902ba8100b0014b75c1573fmr147567pls.128.1643062132755; Mon, 24 Jan 2022 14:08:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643062132; cv=none; d=google.com; s=arc-20160816; b=tz2Iv7r9I5gheZO9olNznp9KNgRq5EHZg3wx6d9FHv17joHlZOHo5Lf51wzv8kG0cL 9gPiXAIP5ov1x1HNT6pXYbvicOEQjep0kTElA8YImyehH3bXsIux+6XAyPSoqIC6VAXf p8JDwoKYbLK2VfIPSUTUMYqGaLJ/olij/VDAB8KkkI1wpazZNAnL5Kd4E/oBfMC77qnu X0YKE1BFHkrwhDtt44DU3jEZx0lQBiFYxyvXpSKxECJalH06KZUh62M8o7YYUZ/Lv9+f 1abb9eLmwGgQhXAhdgtxVrxR7AebIb5GH0AvkAheDvMJFkHtRkMqaxBCNh66anDTkWk8 Yz9A== 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=pzEMvNSHVPk4DYdOmUXZP1c/bdmCWzPTDwWtAPnhXE8=; b=xaP/bBFQQEIP9qAdOeGDy/bJ9dj85sFP4jUdSZXOpQ6xrNqm5B8wX+kA/ufvgEJJoQ TA/UFWacxpa1YMpfiAJgPTzDrGZI+0fphlHtlO1ULAhWlpzG8vcpwU27MKUDA5bCOVJB cHwHqkifb+m55X5E5Y9hQ9yGiUbDukI0jOimBs5l7OTQx4dWSMrrnBxfiUWGrf5Tchl6 vMzkgivTOWLuvHVfqO+wfKqTGwRPUGmtP2AakwMh/ojMM0IJN/cOuaoEPglFHXxJfBPV W3tr2NjG6uCo5Ev/eKqmssm8kS8Ivoflmf1Eh5+cap2QWym8U2GDXed4+gxjIWOy+RQU 3ZnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Dnz70WMr; 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 j6si8286945pld.55.2022.01.24.14.08.34; Mon, 24 Jan 2022 14:08:52 -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=Dnz70WMr; 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 S1349957AbiAXV4u (ORCPT + 99 others); Mon, 24 Jan 2022 16:56:50 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:38674 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1451061AbiAXVWE (ORCPT ); Mon, 24 Jan 2022 16:22:04 -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 ams.source.kernel.org (Postfix) with ESMTPS id 46B10B81142; Mon, 24 Jan 2022 21:22:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FADBC340E4; Mon, 24 Jan 2022 21:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059322; bh=bLZe5OoYsGgnPbNAU3HWfa4F/i/GsLBmkpOXd9PxLn0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dnz70WMr9VeKQsqNdX0/QHrsbC7a2bXqFteAbd30/qMcooB3wMw5hMoGcEisp5I4z 3OYrjQEbogcgoNjBdLGwp1FRa/l8Zx19lULy/2kNVKtqccrvHwNUdcFMjU9H4GZrms UhZRXfeIEmak48aUo08g2KUzPXIycrB/bX2LROw4= 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.16 0576/1039] EDAC/synopsys: Use the quirk for version instead of ddr version Date: Mon, 24 Jan 2022 19:39:25 +0100 Message-Id: <20220124184144.704959594@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 7d08627e738b3..a5486d86fdd2f 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -1352,8 +1352,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