MIPS: Lantiq: Keep ethernet enabled during boot
authorFelix Fietkau <nbd@nbd.name>
Thu, 19 Jan 2017 13:20:09 +0000 (14:20 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 17 Feb 2017 11:14:29 +0000 (11:14 +0000)
commit774f0c6419bb8f9d83901d33582c7fe3ba6a6cb3
tree77a1ab6f4d6554a2f27d27bae1ca170a593886e3
parent884b426917e4b3c85f33b382c792a94305dfdd62
MIPS: Lantiq: Keep ethernet enabled during boot

Disabling ethernet during reboot (only to enable it again when the
ethernet driver attaches) can put the chip into a faulty state where it
corrupts the header of all incoming packets.

This happens if packets arrive during the time window where the core is
disabled, and it can be easily reproduced by rebooting while sending a
flood ping to the broadcast address.

Fixes: 95135bfa7ead ("MIPS: Lantiq: Deactivate most of the devices by default")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Acked-by: John Crispin <john@phrozen.org>
Cc: hauke.mehrtens@lantiq.com
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 4.4.x-
Patchwork: https://patchwork.linux-mips.org/patch/15078/
Signed-off-by: James Hogan <james.hogan@imgtec.com>
arch/mips/lantiq/xway/sysctrl.c