OSDN Git Service

net: phy: micrel: enable led-mode for KSZ8081/KSZ8091
authorJohan Hovold <johan@kernel.org>
Tue, 11 Nov 2014 19:00:15 +0000 (20:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Nov 2014 18:55:37 +0000 (13:55 -0500)
Enable led-mode configuration for KSZ8081 and KSZ8091.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/micrel.txt
drivers/net/phy/micrel.c

index e1d99b9..30062fa 100644 (file)
@@ -14,6 +14,8 @@ Optional properties:
              KSZ8021: register 0x1f, bits 5..4
              KSZ8031: register 0x1f, bits 5..4
              KSZ8051: register 0x1f, bits 5..4
+             KSZ8081: register 0x1f, bits 5..4
+             KSZ8091: register 0x1f, bits 5..4
 
               See the respective PHY datasheet for the mode values.
 
index 12e18f7..30e894d 100644 (file)
@@ -265,6 +265,7 @@ static int ks8051_config_init(struct phy_device *phydev)
 static int ksz8081_config_init(struct phy_device *phydev)
 {
        kszphy_broadcast_disable(phydev);
+       kszphy_setup_led(phydev, MII_KSZPHY_CTRL_2);
 
        return 0;
 }