Skip to content

Commit bd1d6da

Browse files
Dinh Nguyensuryasaimadhu
authored andcommitted
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 <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Michal Simek <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent fa55b7d commit bd1d6da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/edac/synopsys_edac.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,8 +1352,7 @@ static int mc_probe(struct platform_device *pdev)
13521352
}
13531353
}
13541354

1355-
if (of_device_is_compatible(pdev->dev.of_node,
1356-
"xlnx,zynqmp-ddrc-2.40a"))
1355+
if (priv->p_data->quirks & DDR_ECC_INTR_SUPPORT)
13571356
setup_address_map(priv);
13581357
#endif
13591358

0 commit comments

Comments
 (0)