ramips: fix MT7621 switch driver IRQ storm on init with linux 4.14
authorFelix Fietkau <nbd@nbd.name>
Wed, 21 Feb 2018 13:45:48 +0000 (14:45 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 21 Feb 2018 13:46:45 +0000 (14:46 +0100)
commit8a59f9590e0b79f5ec6620a9e8534224e96db9a4
tree537a734dcf7fbcaac7d4cfd930a98e8bd2f4eee2
parent04052051405c2835aecf9c4d539bc6ed4e05878d
ramips: fix MT7621 switch driver IRQ storm on init with linux 4.14

The hardware emits some interrupts while initializing and handling them
can mess up the state or cause infinite loops.
Fix this by disabling IRQs during init and re-enabling them afterwards

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/gsw_mt7621.c