]> git.sur5r.net Git - u-boot/commitdiff
powerpc:t4240: MAC9 and MAC10 should not be identified as 1G interface in some case
authorYing Zhang <b40530@freescale.com>
Mon, 18 Apr 2016 09:04:16 +0000 (17:04 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 25 May 2016 00:11:03 +0000 (17:11 -0700)
When using rcw protocols to support 10G on MAC9 and MAC10, these MACs
should not be identified as 1G interface, otherwise, one MAC will be
listed as two Ethernet ports. For example, MAC9 will be listed as
FM1@TGEC1 and FM1@DTSEC9.

Signed-off-by: Ying Zhang <b40530@freescale.com>
Reviewed-by: York Sun <york.sun@nxp.com>
drivers/net/fm/t4240.c

index ae5aca4bb425a5c7cb186ce0b0b418e69581f8a9..70887fa45fd79613cfb4b29c572952cfbe4e2ad0 100644 (file)
@@ -74,7 +74,7 @@ phy_interface_t fman_port_enet_if(enum fm_port port)
        if ((port == FM1_DTSEC9 || port == FM1_DTSEC10) &&
            ((is_serdes_configured(XFI_FM1_MAC9)) ||
             (is_serdes_configured(XFI_FM1_MAC10))))
-               return PHY_INTERFACE_MODE_XGMII;
+               return PHY_INTERFACE_MODE_NONE;
 
        if ((port == FM2_10GEC1 || port == FM2_10GEC2) &&
            ((is_serdes_configured(XAUI_FM2_MAC9))      ||