Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5028234pxb; Tue, 28 Sep 2021 09:07:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYWfGKTtg/KH3pfkHXby6HeldYbSZIwfqYo9hbXistywmtJpCZHEvRxW32IvmEEz0l6s0J X-Received: by 2002:ac2:4bc1:: with SMTP id o1mr6577548lfq.160.1632845243024; Tue, 28 Sep 2021 09:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632845243; cv=none; d=google.com; s=arc-20160816; b=NTkPYylCL8tNMQgei+MQtzvnzXoqwnZ/UIjmXe5EI7/o6ImS5UfK6wdd7SgGgWNI9D +T6/Sgi0/LhSMZu/fFEE3ojwnhV8+UTJDa8dR+q+kx02fs8qurjBmJuOFE9XNx3Mki6e V4QpkcnRzG+MoBWQsgobI3gLIEoglVxMKpD1RIESRFWmzJFoCEtwKlYRp1UALYlJcHSy pLSg2x87f32jIxK1taN8QpwfTZ+YdUWDlnaSriVzrJD8s9t8sGebwNh6Vxr87oK5ChVb lCpmXnd0ZhJ+wyes8YL/8rUKLsatBXk139tdsV/ukMvT0cRoJG/MKb+MZSHDS5jYgOmr RVbw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=rwyRwTIQGvV0flbNkE8XuSteIHmD5qtyl/e+j5d7mA8=; b=l8cs+gGr9ZaK4dYI5t+MKLwq3PJlnMVGqffWbp+7EV2DRBdE7+6aVsnEr0P+IRzUZF hfzAOaxM8bENlhmRGRsCHgMoM670/SzfmxtFCw4mkUqc5rer0J97JH+K/rWfBWouv8TR 7DcHb0W/1HDpz7O0qceZ0KLL/+B4wdesDveHaXdDSYA+uM15hA8REGXYtY4PSKT1VCW1 GaEU5wv4a7dKqJCZ9lP3hjgJiQITnSjuigoQ2XpkA2/HsfpNuHjtCC0jbChKU0bNyjju qkZlYIAmnbiAXwHAuTm/ikbxz7TnfTLVh5GPeyC+taY1LEk3GP5sLcpgjj1/XwR/IkLv a6TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JEMBpoTv; 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 c24si22954089edn.26.2021.09.28.09.06.58; Tue, 28 Sep 2021 09:07:22 -0700 (PDT) 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=JEMBpoTv; 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 S241835AbhI1QGT (ORCPT + 99 others); Tue, 28 Sep 2021 12:06:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:47478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241821AbhI1QGJ (ORCPT ); Tue, 28 Sep 2021 12:06:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 27AD96128B; Tue, 28 Sep 2021 16:04:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632845069; bh=P4ZkEtDSPnIoXB1tLW1afhZpMp6qUuz4Ha6J4mMMF+Y=; h=From:To:Cc:Subject:Date:From; b=JEMBpoTvyDv5hbAmUzjdFRvle5ut7iUoFzOHkhk9cLW4vNmZvBUwYQZIhFFFIxPoZ DrcGaz6X8a31DTkv4uSfQYfq2qlgkPXiwAMAQeBPGQVvlhw+6gdLEFI+ktJwRhO77F 9j7ghfylIAJlJVcJ3YXNAw+hk4NllNHhAF2ZRR3Mv8VRIUly//K/tofo8tWAgRpnaw /9VTJYVaSKNq2ZzpHuP5qPTjDqTojSTS8hFjFQYCF1Z5POmR0tpQguZxNsrcw17/JS /ikU92qwTfrim3IZa0WGPu4gASsm0xbxf2pgeom6gBJl/b25ADUTHWNC9ZRp8vsn9G n6bXosMPiHzaQ== From: Dinh Nguyen To: michal.simek@xilinx.com Cc: dinguyen@kernel.org, bp@alien8.de, mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rric@kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org Subject: [PATCHv3 1/3] EDAC/synopsys: use the quirk for version instead of ddr version Date: Tue, 28 Sep 2021 11:04:21 -0500 Message-Id: <20210928160423.271187-1-dinguyen@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- v3: new patch --- 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 7e7146b22c16..bf237fccb444 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.25.1