Skip to content

Commit 37dcf61

Browse files
lategoodbyeZhengShunQian
authored andcommitted
net: lan78xx: fix rx handling before first packet is send
[ Upstream commit 136f55f ] 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 400372e commit 37dcf61

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
@@ -1361,6 +1361,8 @@ static void lan78xx_init_mac_address(struct lan78xx_net *dev)
13611361
netif_dbg(dev, ifup, dev->net,
13621362
"MAC address set to random addr");
13631363
}
1364+
1365+
tasklet_schedule(&dev->bh);
13641366
}
13651367

13661368
ret = lan78xx_write_reg(dev, MAF_LO(0), addr_lo);

0 commit comments

Comments
 (0)