Skip to content

Commit 136f55f

Browse files
lategoodbyedavem330
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 after link reset. Link: raspberrypi/linux#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]> Signed-off-by: David S. Miller <[email protected]>
1 parent ee614c8 commit 136f55f

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
@@ -1242,6 +1242,8 @@ static int lan78xx_link_reset(struct lan78xx_net *dev)
12421242
mod_timer(&dev->stat_monitor,
12431243
jiffies + STAT_UPDATE_TIMER);
12441244
}
1245+
1246+
tasklet_schedule(&dev->bh);
12451247
}
12461248

12471249
return ret;

0 commit comments

Comments
 (0)