Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6b65094 authored by Dinh Nguyen's avatar Dinh Nguyen Committed by Greg Kroah-Hartman
Browse files

EDAC/synopsys: Use the quirk for version instead of ddr version



[ 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: default avatarDinh Nguyen <dinguyen@kernel.org>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Reviewed-by: default avatarMichal Simek <michal.simek@xilinx.com>
Link: https://lkml.kernel.org/r/20211012190709.1504152-1-dinguyen@kernel.org


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 2134ebc2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1351,8 +1351,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