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

Commit 759afc31 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

tg3: ethtool phys_id default



When asked to blink LEDs the tg3 driver behaves when using:
	ethtool -p ethX
The default value for data is zero, and other drivers interpret this
as blink forever (or at least a really long time).  The tg3 driver
interprets this as blink once.  All drivers should have the same
behaviour.

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Acked-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c73b1d1f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8781,7 +8781,7 @@ static int tg3_phys_id(struct net_device *dev, u32 data)
		return -EAGAIN;

	if (data == 0)
		data = 2;
		data = UINT_MAX / 2;

	for (i = 0; i < (data * 2); i++) {
		if ((i % 2) == 0)