Skip to content

Commit d407fc2

Browse files
lategoodbyepelwell
authored andcommitted
net: lan78xx: fix rx handling before first packet is send
As long the bh tasklet isn't scheduled once, no packet from the rx path will be handled. Since the tx path also schedule the same tasklet this situation only persits until the first packet transmission. So fix this issue by scheduling the tasklet during ndo_open like in usbnet. Link: #2617 Fixes: 55d7de9 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet") Suggested-by: Floris Bos <[email protected]> Signed-off-by: Stefan Wahren <[email protected]>
1 parent db81c14 commit d407fc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/usb/lan78xx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,6 +2606,8 @@ static int lan78xx_open(struct net_device *net)
26062606

26072607
dev->link_on = false;
26082608

2609+
tasklet_schedule(&dev->bh);
2610+
26092611
lan78xx_defer_kevent(dev, EVENT_LINK_RESET);
26102612
done:
26112613
usb_autopm_put_interface(dev->intf);

0 commit comments

Comments
 (0)