Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ed770f6 authored by Jon Ringle's avatar Jon Ringle Committed by David S. Miller
Browse files

net: encx24j600: Fix mask to update LED configuration



This fixes the mask used to update the LED configuration so that it clears
the necessary bits as well as setting the bits according to the mask.
Also reverse the LED configuration to show the Link state + collisions in
LEDA and the Link state + TX/RX events in LEDB.

Signed-off-by: default avatarJon Ringle <jringle@gridpoint.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent da92bf99
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -617,10 +617,10 @@ static int encx24j600_hw_init(struct encx24j600_priv *priv)
		   (eidled & REVID_MASK) >> REVID_SHIFT);

	/* PHY Leds: link status,
	 * LEDA: Link + transmit/receive events
	 * LEDB: Link State + colision events
	 * LEDA: Link State + collision events
	 * LEDB: Link State + transmit/receive events
	 */
	encx24j600_update_reg(priv, EIDLED, 0xbc00, 0xbc00);
	encx24j600_update_reg(priv, EIDLED, 0xff00, 0xcb00);

	/* Loopback disabled */
	encx24j600_write_reg(priv, MACON1, 0x9);