OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Aug 2018 14:24:40 +0000 (16:24 +0200)
commitd1fc12d8475ce4538b03f4901d6a65b639700e27
treeff215d3b663dd3001b8f1b1eb6f3c2d9fe9c75c1
parent3c3deb06ebda981b65be2abfd5980e23b1519dff
net: lan78xx: fix rx handling before first packet is send

[ Upstream commit 136f55f660192ce04af091642efc75d85e017364 ]

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: 55d7de9de6c3 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/lan78xx.c