]> git.baikalelectronics.ru Git - kernel.git/commit
net: lan78xx: fix rx handling before first packet is send
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 28 Jul 2018 07:52:10 +0000 (09:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Jul 2018 21:29:49 +0000 (14:29 -0700)
commitb3f1396dc8187b9ca63ab2e56dd5a04725cf41ad
tree5165e9546bad5c6efe82af895206025c13b30178
parentf613ee9534e0934c7b466749911f0f81039440e5
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: https://github.com/raspberrypi/linux/issues/2617
Fixes: f98af78833e9 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet")
Suggested-by: Floris Bos <bos@je-eigen-domein.nl>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c