summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Qiang <qiang.zhao@nxp.com>2018-08-29 11:46:34 +0800
committerYork Sun <york.sun@nxp.com>2018-09-27 10:01:27 -0700
commitdb947fa038f753d17b6afa2dce06534e22b750b9 (patch)
treee30cb4eab98282691780e9f5a09e255311a6a012
parentaea5cd75e63c20de4c00ce24a93eeee8542f923e (diff)
downloadu-boot-db947fa038f753d17b6afa2dce06534e22b750b9.tar.gz
net: fman: Support both new and legacy FMan Compatibles
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 version 3.18.0, commit 297d35fd2a7d3fbd4e5c0f0c1c18213117ba11ba ./Documentation/devicetree/bindings/powerpc/fsl/fman.txt This patch doesn't affect legacy compatibles support. Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com> [York S: reformatted commit message] Reviewed-by: York Sun <york.sun@nxp.com>
-rw-r--r--drivers/net/fm/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/fm/init.c b/drivers/net/fm/init.c
index 147d0437c5..f896e80b6d 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-xgec") &&
+ ft_fixup_port(blob, &fm_info[i], "fsl,fman-tgec"))
ft_fixup_port(blob, &fm_info[i],
"fsl,fman-10g-mac");
}