]> git.baikalelectronics.ru Git - kernel.git/commit
cx82310_eth: re-enable ethernet mode after router reboot
authorOndrej Zary <linux@zary.sk>
Sat, 10 Oct 2020 14:00:46 +0000 (16:00 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 12 Oct 2020 16:46:40 +0000 (09:46 -0700)
commit7226f009ee48fa4eb52b2eb9e076ddc2a3369822
treeb2f4048be3c18ed2e6ed6563bf2d70517435bbcb
parent1832f1e2a03753b376fcc0986ca591bb15dca607
cx82310_eth: re-enable ethernet mode after router reboot

When the router is rebooted without a power cycle, the USB device
remains connected but its configuration is reset. This results in
a non-working ethernet connection with messages like this in syslog:
usb 2-2: RX packet too long: 65535 B

Re-enable ethernet mode when receiving a packet with invalid size of
0xffff.

Signed-off-by: Ondrej Zary <linux@zary.sk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/cx82310_eth.c