Skip to content

Commit

Permalink
EDAC/synopsys: Use the quirk for version instead of ddr version
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Dinh Nguyen authored and suryasaimadhu committed Nov 20, 2021
1 parent fa55b7d commit bd1d6da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/edac/synopsys_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bd1d6da

Please sign in to comment.