gianfar: Fix boot hangs while bringing up gianfar ethernet
commit8707bdd48ab705a459ac1b12014075a139d1d4f9
authorJarek Poplawski <jarkao2@gmail.com>
Mon, 9 Feb 2009 22:59:30 +0000 (9 14:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Feb 2009 22:59:30 +0000 (9 14:59 -0800)
tree1dc59924b30949d20a6f7c4da9981005b6d612f7
parentd4e2675a61890a84849a24affedf80d5cae8b199
gianfar: Fix boot hangs while bringing up gianfar ethernet

Ira Snyder found that commit 8c7396aebb68994c0519e438eecdf4d5fa9c7844
"gianfar: Merge Tx and Rx interrupt for scheduling clean up ring" can
cause hangs. It's because there was removed clearing of interrupts in
gfar_schedule_cleanup() (which is called by an interrupt handler) in
case when netif scheduling has been disabled. This patch brings back
this action and a comment.

Reported-by: Ira Snyder <iws@ovro.caltech.edu>
Reported-by: Peter Korsgaard <jacmet@sunsite.dk>
Bisected-by: Ira Snyder <iws@ovro.caltech.edu>
Tested-by: Peter Korsgaard <jacmet@sunsite.dk>
Tested-by: Ira Snyder <iws@ovro.caltech.edu>
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.c