summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-02-23 19:51:59 -0800
committerDavid S. Miller <davem@davemloft.net>2008-02-23 19:51:59 -0800
commit759afc31332aed66bde20743e7e2d1e47b08aaeb (patch)
treee0ed136aa97d694168da947a66fd3b821263a781 /drivers
parentc73b1d1f26d4c9d54b49526edf9ee958ee5b80c1 (diff)
downloadlwn-759afc31332aed66bde20743e7e2d1e47b08aaeb.tar.gz
lwn-759afc31332aed66bde20743e7e2d1e47b08aaeb.zip
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: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/tg3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index db606b603884..26ffb67f1da2 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -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)