ramips: ethernet: fix to interrupt handling
authorNeilBrown <neil@brown.name>
Tue, 29 Oct 2019 17:23:28 +0000 (10:23 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 6 Sep 2020 15:11:34 +0000 (17:11 +0200)
commit7ac454014a11347887323a131415ac7032d53546
tree2c99c507903d174367a0aadcaaf73f4abcb7a688
parentf5afa593e7cead980350fb82f6853d880c493872
ramips: ethernet: fix to interrupt handling

The current code acknowledged interrupts *after* polling.
This is the wrong way around, and could cause an interrupt to
be missed.
This is not likely to be fatal as another packet, and so another
interrupt, should come along soon.  But maybe it is causing
problems, so let's fix it anyway.

Signed-off-by: NeilBrown <neil@brown.name>
(Note that this matches the upstream driver.)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c