]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: set rx mode early when linking on
authorHayes Wang <hayeswang@realtek.com>
Fri, 2 Feb 2018 08:43:36 +0000 (16:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Feb 2018 00:19:00 +0000 (19:19 -0500)
commit03ebaf7256050f6ccb0aa7fcffe09539d365a219
treeb789c79767f374ba1a79e6afac81334bd7af2b3b
parent3fe7b0a46afba21280519d51b064d8c9dcf6b163
r8152: set rx mode early when linking on

Set rx mode before calling netif_wake_queue() when linking on to avoid
the device missing the receiving packets.

The transmission may start after calling netif_wake_queue(), and the
packets of resopnse may reach before calling rtl8152_set_rx_mode()
which let the device could receive packets. Then, the packets of
response would be missed.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c