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)
commitca139d76b0d9e59d18f2d2ec8f0d81b82acd6808
treeb2f4048be3c18ed2e6ed6563bf2d70517435bbcb
parentbc081a693a56061f68f736c5d596134ee3c87689
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