]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: mvpp2: AN Bypass in 1000 and 2500 basex mode
authorBen Peled <bpeled@marvell.com>
Mon, 3 May 2021 06:08:49 +0000 (08:08 +0200)
committerStefan Roese <sr@denx.de>
Thu, 20 May 2021 11:03:30 +0000 (13:03 +0200)
Signed-off-by: Ben Peled <bpeled@marvell.com>
Reviewed-by: Stefan Chulski <stefanc@marvell.com>
Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/net/mvpp2.c

index ec7cb89a94c875a3360c283c4f088cccacc67b7d..879289452b1508d113b1a045054f779957334305 100644 (file)
@@ -3148,7 +3148,8 @@ static void gop_gmac_2500basex_cfg(struct mvpp2_port *port)
         * bypass enabled (link interrupt storm risk
         * otherwise).
         */
-       val = MVPP2_GMAC_EN_PCS_AN |
+       val = MVPP2_GMAC_AN_BYPASS_EN |
+               MVPP2_GMAC_EN_PCS_AN |
                MVPP2_GMAC_CONFIG_GMII_SPEED  |
                MVPP2_GMAC_CONFIG_FULL_DUPLEX |
                MVPP2_GMAC_CHOOSE_SAMPLE_TX_CONFIG;
@@ -3188,7 +3189,8 @@ static void gop_gmac_1000basex_cfg(struct mvpp2_port *port)
         * bypass enabled (link interrupt storm risk
         * otherwise).
         */
-       val = MVPP2_GMAC_EN_PCS_AN |
+       val = MVPP2_GMAC_AN_BYPASS_EN |
+               MVPP2_GMAC_EN_PCS_AN |
                MVPP2_GMAC_CONFIG_GMII_SPEED  |
                MVPP2_GMAC_CONFIG_FULL_DUPLEX |
                MVPP2_GMAC_CHOOSE_SAMPLE_TX_CONFIG;