diff mbox series

[PATCHv4,1/4] EDAC/synopsys: use the quirk for version instead of ddr version

Message ID 20211012190709.1504152-1-dinguyen@kernel.org (mailing list archive)
State New, archived
Headers show
Series [PATCHv4,1/4] EDAC/synopsys: use the quirk for version instead of ddr version | expand

Commit Message

Dinh Nguyen Oct. 12, 2021, 7:07 p.m. UTC
Version 2.40a supports DDR_ECC_INTR_SUPPORT for a quirk, so use that
quirk to determine a call to setup_address_map().

Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
v4: add Reviewed-by
v3: new patch
---
 drivers/edac/synopsys_edac.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Dinh Nguyen Nov. 18, 2021, 10:43 p.m. UTC | #1
Hi Boris,

can you please take this series through your tree?

Thanks,
Dinh

On 10/12/21 2:07 PM, Dinh Nguyen wrote:
> Version 2.40a supports DDR_ECC_INTR_SUPPORT for a quirk, so use that
> quirk to determine a call to setup_address_map().
> 
> Reviewed-by: Michal Simek <michal.simek@xilinx.com>
> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
> ---
> v4: add Reviewed-by
> 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
>   
>
Borislav Petkov Nov. 20, 2021, 6:56 p.m. UTC | #2
On Thu, Nov 18, 2021 at 04:43:55PM -0600, Dinh Nguyen wrote:
> Hi Boris,
> 
> can you please take this series through your tree?

Sure, applied.

Thx.
diff mbox series

Patch

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