summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorDinh Nguyen <dinguyen@kernel.org>2021-10-12 14:07:06 -0500
committerBorislav Petkov <bp@suse.de>2021-11-20 18:13:06 +0100
commitbd1d6da17c296bd005bfa656952710d256e77dd3 (patch)
tree9560e956d11dcaf7c7179ae727c2d9c7f52b7f93 /drivers/edac
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf (diff)
downloadlinux-bd1d6da17c296bd005bfa656952710d256e77dd3.tar.gz
linux-bd1d6da17c296bd005bfa656952710d256e77dd3.tar.bz2
linux-bd1d6da17c296bd005bfa656952710d256e77dd3.zip
EDAC/synopsys: Use the quirk for version instead of ddr version
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 <dinguyen@kernel.org> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Michal Simek <michal.simek@xilinx.com> Link: https://lkml.kernel.org/r/20211012190709.1504152-1-dinguyen@kernel.org
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/synopsys_edac.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c
index 7d08627e738b..a5486d86fdd2 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