Skip to content

Commit d2f1173

Browse files
James Hughespopcornmix
authored andcommitted
net:phy:2711 Change the default ethernet LED actions
This should return default behaviour back to that of previous releases.
1 parent e8f4a28 commit d2f1173

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎drivers/net/phy/broadcom.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ static int bcm54xx_config_init(struct phy_device *phydev)
258258
{
259259
int reg, err, val;
260260
u32 led_modes[] = {BCM_LED_MULTICOLOR_LINK_ACT,
261-
BCM_LED_MULTICOLOR_LINK_ACT};
261+
BCM_LED_MULTICOLOR_LINK};
262262
struct device_node *np = phydev->mdio.dev.of_node;
263263

264264
reg = phy_read(phydev, MII_BCM54XX_ECR);
@@ -310,10 +310,6 @@ static int bcm54xx_config_init(struct phy_device *phydev)
310310

311311
of_property_read_u32_array(np, "led-modes", led_modes, 2);
312312

313-
/* Encode link speed into LED1 and LED3 pair (green/amber).
314-
* Also flash these two LEDs on activity. This means configuring
315-
* them for MULTICOLOR and encoding link/activity into them.
316-
*/
317313
val = BCM5482_SHD_LEDS1_LED1(BCM_LED_SRC_MULTICOLOR1) |
318314
BCM5482_SHD_LEDS1_LED3(BCM_LED_SRC_MULTICOLOR1);
319315
bcm_phy_write_shadow(phydev, BCM5482_SHD_LEDS1, val);

0 commit comments

Comments
 (0)