]> git.baikalelectronics.ru Git - kernel.git/commit
e1000: restore netif_poll_enable call but make sure IRQs are off
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 29 May 2007 22:07:31 +0000 (15:07 -0700)
committerJeff Garzik <jeff@garzik.org>
Wed, 30 May 2007 13:52:48 +0000 (09:52 -0400)
commitba5e7a0995e4157efb078c5e23d35134fa2742db
treef9876f1cd9891232ac4814b6c08145d1f3050178
parent455a471a40da5856842ec1b7991de771f6e4870b
e1000: restore netif_poll_enable call but make sure IRQs are off

This restores the previously removed netif_poll_enable call in e1000_open.
It's needed on all but the first call to e1000_open for a NIC as
e1000_close always calls netif_poll_disable.

netif_poll_enable can only be called safely if no polls have been
scheduled.  This should be the case as long as we don't enter our IRQ
handler.

In order to guarantee this we explicitly disable IRQs as early as possible
when we're probing the NIC.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "Kok, Auke" <auke-jan.h.kok@intel.com>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/e1000/e1000_main.c