summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/marvell.c
diff options
context:
space:
mode:
authorDavid S. Miller2014-11-01 19:53:27 +0100
committerDavid S. Miller2014-11-01 19:53:27 +0100
commit55b42b5ca2dcf143465968697fe6c6503b05fca1 (patch)
tree91878cd53efc44ba67244d4d3897020828c87c01 /drivers/net/phy/marvell.c
parentdrivers: net: cpsw: Support ALLMULTI and fix IFF_PROMISC in switch mode (diff)
parentsunhme: Add DMA mapping error checks. (diff)
downloadkernel-qcow2-linux-55b42b5ca2dcf143465968697fe6c6503b05fca1.tar.gz
kernel-qcow2-linux-55b42b5ca2dcf143465968697fe6c6503b05fca1.tar.xz
kernel-qcow2-linux-55b42b5ca2dcf143465968697fe6c6503b05fca1.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/phy/marvell.c Simple overlapping changes in drivers/net/phy/marvell.c Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/marvell.c')
-rw-r--r--drivers/net/phy/marvell.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c
index 3e3d7cadeb27..bb4d780c0838 100644
--- a/drivers/net/phy/marvell.c
+++ b/drivers/net/phy/marvell.c
@@ -58,6 +58,10 @@
#define MII_M1145_HWCFG_MODE_MASK 0xf
#define MII_M1145_HWCFG_FIBER_COPPER_AUTO 0x8000
+#define MII_M1145_HWCFG_MODE_SGMII_NO_CLK 0x4
+#define MII_M1145_HWCFG_MODE_MASK 0xf
+#define MII_M1145_HWCFG_FIBER_COPPER_AUTO 0x8000
+
#define MII_M1111_PHY_LED_CONTROL 0x18
#define MII_M1111_PHY_LED_DIRECT 0x4100
#define MII_M1111_PHY_LED_COMBINE 0x411c
@@ -708,7 +712,7 @@ static int m88e1145_config_init(struct phy_device *phydev)
if (temp < 0)
return temp;
- temp &= ~(MII_M1145_HWCFG_MODE_MASK);
+ temp &= ~MII_M1145_HWCFG_MODE_MASK;
temp |= MII_M1145_HWCFG_MODE_SGMII_NO_CLK;
temp |= MII_M1145_HWCFG_FIBER_COPPER_AUTO;