diff options
author | Zakharov Vlad <Vladislav.Zakharov@synopsys.com> | 2017-03-29 13:41:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-29 14:28:16 -0700 |
commit | 358e78b5f445c35f5b7f9241425fb499ee9fe3e2 (patch) | |
tree | 5a50b6cb235cbf46bd7c9d30547d31df1e4e3d82 /drivers/mfd/88pm860x-i2c.c | |
parent | a1801cc83f351bc12c6acebf1164be2de6810379 (diff) | |
download | linux-358e78b5f445c35f5b7f9241425fb499ee9fe3e2.tar.bz2 |
ezchip: nps_enet: check if napi has been completed
After a new NAPI_STATE_MISSED state was added to NAPI we can get into
this state and in such case we have to reschedule NAPI as some work is
still pending and we have to process it. napi_complete_done() function
returns false if we have to reschedule something (e.g. in case we were
in MISSED state) as current polling have not been completed yet.
nps_enet driver hasn't been verifying the return value of
napi_complete_done() and has been forcibly enabling interrupts. That is
not correct as we should not enable interrupts before we have processed
all scheduled work. As a result we were getting trapped in interrupt
hanlder chain as we had never been able to disabale ethernet
interrupts again.
So this patch makes nps_enet_poll() func verify return value of
napi_complete_done() and enable interrupts only in case all scheduled
work has been completed.
Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/mfd/88pm860x-i2c.c')
0 files changed, 0 insertions, 0 deletions