Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3384701pxb; Mon, 17 Jan 2022 19:14:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXcBxdWQRra7xftXfIC6gt3c+nnJj4pnNSsQSwGFigjGq6Ik6e198BLfbOToNUvs4wLDmM X-Received: by 2002:a63:d243:: with SMTP id t3mr4811574pgi.437.1642475686194; Mon, 17 Jan 2022 19:14:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642475686; cv=none; d=google.com; s=arc-20160816; b=OUhHKVRe3rbEaE6slOX4+Q2j9knDlyb2hmG4hjVCx0WudrCqc9zcwlRC4boz7pWsNP cfulSWH24+J8+TzFVfOvVRDZbtNy52z3sys2+j0e5xOpQxYnUaJbf7vWIMcRExW4HUVT h/xLfFyavgKU7KiU5sxVOcrxlsvN3Z+Zt2rAjLrIyF3Zvpc5ta4fEqLlaqpjDf0RdVPY JB2gHkh2nptgbsc2INohUPNW2Mdm6sFvvuR4h1rLPv9T9oiiW0gxG2ZfEKXjxPufDv7x Gw5h9uOpWNsdyXp+dwu4Ghfs5qieSxgi7j3s9FbEDmeNjeqjuS0l6RYzSf0JxdKYWXjq AaXg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pzEMvNSHVPk4DYdOmUXZP1c/bdmCWzPTDwWtAPnhXE8=; b=v8Aqq7TpPOAqqK2iCXqkWqIHRCGeIWcfOHNXJJUFYwlAaAbmOqROb+JcBqoMRj3RoN R4MelI7XY360/kKreymP4YyPSMzYN6CY9ppO1ytvSB1vFpVWtL/MyCPIDs4NR23Gf3MJ CDSVlmjLAF89Ktnj5XtmxkJJkNfQSr6KOx2md120Jnn65FE9Q/xoi5V3wlevdKy1dwXe NpoM+Ju77+DcnoxhD+rTBfuwhlPN8ll6dJ0t/ssOWqWhdVmeq1vdKJMvM9O/GkMZ4bJl xV3NPyAoZiHblvBaEzSZy7J4Jdw382VitQ6dqGrHK9YzhtifdKUvkLfYZu0tm4Qb+YnH J/Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LnlTRUXP; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si16040775pgm.421.2022.01.17.19.14.30; Mon, 17 Jan 2022 19:14:46 -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=@kernel.org header.s=k20201202 header.b=LnlTRUXP; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245420AbiARCX5 (ORCPT + 99 others); Mon, 17 Jan 2022 21:23:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244732AbiARCWp (ORCPT ); Mon, 17 Jan 2022 21:22:45 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3D72C06176E; Mon, 17 Jan 2022 18:22:44 -0800 (PST) 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 9181CB8124E; Tue, 18 Jan 2022 02:22:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 623B2C36AF2; Tue, 18 Jan 2022 02:22:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642472562; bh=bLZe5OoYsGgnPbNAU3HWfa4F/i/GsLBmkpOXd9PxLn0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LnlTRUXPdCH9b5R9wDXU2B3t1ZbJrMP3GDxbVjlmXu4L4prPrsnh42btRJiUqCjtD vbAgv/996Up7QkZ1W9x9anIZd76b3MPp9WU+QG3L2nW5dQvpNY7awYA8c8i2NSqlGd mRORuuFXWi2+sIY9qWLe8YI6hRxzBiUUkr8ubWurYeZoK3FBUmTdDaQdq2inHB9IY4 /2dG8Bkd/r8jC+MeepvWExX6AhcGsLLVCxdR9UaoQif1BAukcrL6kU1a8KhYBokbsA zRAWxHun6prfpMQ7ge0TSaB0VVj3PuftuSjngX457sHlaqR2MY3Wr9EuX6gZxe0MAa GDrBNv+SkACBg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Dinh Nguyen , Borislav Petkov , Michal Simek , Sasha Levin , bp@alien8.de, mchehab@kernel.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org Subject: [PATCH AUTOSEL 5.16 054/217] EDAC/synopsys: Use the quirk for version instead of ddr version Date: Mon, 17 Jan 2022 21:16:57 -0500 Message-Id: <20220118021940.1942199-54-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220118021940.1942199-1-sashal@kernel.org> References: <20220118021940.1942199-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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