Skip to content

Commit 1c70d2d

Browse files
author
Phil Elwell
committed
lan78xx: Fix link status notifications
The patch to allow packet reception before the first transmission broke the notification and handling of link status changes. Move the new call to tasklet_schedule into lan78xx_link_reset to fix it. See: raspberrypi#2617 Fixes: d407fc2 ("net: lan78xx: fix rx handling before first packet is send") Suggested-by: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: Phil Elwell <phil@raspberrypi.org>
1 parent 8fcf78e commit 1c70d2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/net/usb/lan78xx.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,8 @@ static int lan78xx_link_reset(struct lan78xx_net *dev)
12271227
mod_timer(&dev->stat_monitor,
12281228
jiffies + STAT_UPDATE_TIMER);
12291229
}
1230+
1231+
tasklet_schedule(&dev->bh);
12301232
}
12311233

12321234
return ret;
@@ -2606,8 +2608,6 @@ static int lan78xx_open(struct net_device *net)
26062608

26072609
dev->link_on = false;
26082610

2609-
tasklet_schedule(&dev->bh);
2610-
26112611
lan78xx_defer_kevent(dev, EVENT_LINK_RESET);
26122612
done:
26132613
usb_autopm_put_interface(dev->intf);

0 commit comments

Comments
 (0)