All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] stmmac: platform: add "snps, dwmac-5.10a" IP compatible string
@ 2020-05-25  8:22 ` Fugang Duan
  0 siblings, 0 replies; 10+ messages in thread
From: Fugang Duan @ 2020-05-25  8:22 UTC (permalink / raw)
  To: peppe.cavallaro, alexandre.torgue, joabreu, kuba, davem
  Cc: fugang.duan, mcoquelin.stm32, netdev, p.zabel, linux-stm32,
	linux-arm-kernel

Add "snps,dwmac-5.10a" compatible string for 5.10a version that can
avoid to define some plat data in glue layer.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
index bcda49d..f32317f 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
@@ -507,7 +507,8 @@ stmmac_probe_config_dt(struct platform_device *pdev, const char **mac)
 
 	if (of_device_is_compatible(np, "snps,dwmac-4.00") ||
 	    of_device_is_compatible(np, "snps,dwmac-4.10a") ||
-	    of_device_is_compatible(np, "snps,dwmac-4.20a")) {
+	    of_device_is_compatible(np, "snps,dwmac-4.20a") ||
+	    of_device_is_compatible(np, "snps,dwmac-5.10a")) {
 		plat->has_gmac4 = 1;
 		plat->has_gmac = 0;
 		plat->pmt = 1;
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-05-25 16:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-25  8:22 [PATCH] stmmac: platform: add "snps, dwmac-5.10a" IP compatible string Fugang Duan
2020-05-25  8:22 ` [PATCH] stmmac: platform: add "snps,dwmac-5.10a" " Fugang Duan
2020-05-25 14:10 ` Andrew Lunn
2020-05-25 14:10   ` Andrew Lunn
2020-05-25 16:00   ` [EXT] " Andy Duan
2020-05-25 16:00     ` Andy Duan
2020-05-25 16:05     ` Andrew Lunn
2020-05-25 16:05       ` Andrew Lunn
2020-05-25 16:13       ` Andy Duan
2020-05-25 16:13         ` Andy Duan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.