]> Git Repo - u-boot.git/commitdiff
net: mvpp2: Enable PHY polling mode on PPv2.2
authorStefan Roese <[email protected]>
Thu, 9 Mar 2017 11:01:57 +0000 (12:01 +0100)
committerStefan Roese <[email protected]>
Wed, 29 Mar 2017 05:44:26 +0000 (07:44 +0200)
Testing shows, that PHY polling needs to be enabled on Armada 7k/8k.
Otherwise ethernet transfers will not work correctly. PHY polling
is enabled per default after reset, so we do not need to specifically
enable it, but this makes it clearer.

Signed-off-by: Stefan Roese <[email protected]>
Cc: Stefan Chulski <[email protected]>
Cc: Kostya Porotchkin <[email protected]>
Cc: Nadav Haklai <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
drivers/net/mvpp2.c

index 79442b873e800bb3d7979fed5d51c1560b7cbb91..36e209e83d2f82d0fe4a4cc6bd2345570e77f168 100644 (file)
@@ -4957,14 +4957,15 @@ static int mvpp2_init(struct udevice *dev, struct mvpp2 *priv)
        if (priv->hw_version == MVPP22)
                mvpp2_axi_init(priv);
 
-       /* Disable HW PHY polling */
        if (priv->hw_version == MVPP21) {
+               /* Disable HW PHY polling */
                val = readl(priv->lms_base + MVPP2_PHY_AN_CFG0_REG);
                val |= MVPP2_PHY_AN_STOP_SMI0_MASK;
                writel(val, priv->lms_base + MVPP2_PHY_AN_CFG0_REG);
        } else {
+               /* Enable HW PHY polling */
                val = readl(priv->iface_base + MVPP22_SMI_MISC_CFG_REG);
-               val &= ~MVPP22_SMI_POLLING_EN;
+               val |= MVPP22_SMI_POLLING_EN;
                writel(val, priv->iface_base + MVPP22_SMI_MISC_CFG_REG);
        }
 
This page took 0.04921 seconds and 4 git commands to generate.