From: Sathya Perla Date: Tue, 27 Nov 2012 19:50:02 +0000 (+0000) Subject: be2net: fix INTx ISR for interrupt behaviour on BE2 X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~177 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e49cc34f7ac30304ef0563d2517f6c5f86525220;p=pandora-kernel.git be2net: fix INTx ISR for interrupt behaviour on BE2 On BE2 chip, an interrupt may be raised even when EQ is in un-armed state. As a result be_intx()::events_get() and be_poll:events_get() can race and notify an EQ wrongly. Fix this by counting events only in be_poll(). Commit 0b545a629 fixes the same issue in the MSI-x path. But, on Lancer, INTx can be de-asserted only by notifying num evts. This is not an issue as the above BE2 behavior doesn't exist/has never been seen on Lancer. Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- Reading git-diff-tree failed