diff options
author | Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com> | 2012-05-10 06:00:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-11 04:45:54 +0200 |
commit | 380ec964bc19f865af70c0339dff1cb75dc4f8f2 (patch) | |
tree | 6cd074cc9ef5e4e95c2055eff6270b8af2ead281 /drivers/net/ethernet/oki-semi | |
parent | igb: fix rtnl race in PM resume path (diff) | |
download | linux-380ec964bc19f865af70c0339dff1cb75dc4f8f2.tar.xz linux-380ec964bc19f865af70c0339dff1cb75dc4f8f2.zip |
ehea: fix losing of NEQ events when one event occurred early
The NEQ interrupt is only triggered when there was no previous pending
interrupt. If we request irq handling after an interrupt has occurred,
we will never get an interrupt until we call H_RESET_EVENTS.
Events seem to be cleared when we first register the NEQ. So, when we
requested irq handling right after registering it, a possible race with
an interrupt was much less likely. Now, there is a chance we may lose
this race and never get any events.
The fix here is to poll and acknowledge any events that might have
happened right after registering the irq handler.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/oki-semi')
0 files changed, 0 insertions, 0 deletions