Recently  the FMan Port and MAC compatibles were changed.
This patch aligns the FMan Port and MAC compatibles
to the new FMan device tree binding document.
The FMan device tree binding document can be found in the Linux
kernel:
./Documentation/devicetree/bindings/net/fsl-fman.txt

This patch doesn't affect legacy compatibles support.

Signed-off-by: Zhao Qiang <qiang.z...@nxp.com>
---
 drivers/net/fm/init.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/fm/init.c b/drivers/net/fm/init.c
index 147d043..e3b1a50 100644
--- a/drivers/net/fm/init.c
+++ b/drivers/net/fm/init.c
@@ -328,7 +328,8 @@ void fdt_fixup_fman_ethernet(void *blob)
                                ft_fixup_port(blob, &fm_info[i],
                                              "fsl,fman-1g-mac");
                } else {
-                       if (ft_fixup_port(blob, &fm_info[i], "fsl,fman-tgec"))
+                       if (ft_fixup_port(blob, &fm_info[i], "fsl,fman-tgec") &&
+                           ft_fixup_port(blob, &fm_info[i], "fsl,fman-xgec"))
                                ft_fixup_port(blob, &fm_info[i],
                                              "fsl,fman-10g-mac");
                }
-- 
1.7.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to