android_kernel_xiaomi_sm8350/drivers/net/e1000
Herbert Xu 4731305435 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>
2007-05-30 09:52:48 -04:00
..
e1000_ethtool.c e1000: ROUND_UP macro cleanup in drivers/net/e1000 2007-04-28 11:01:07 -04:00
e1000_hw.c
e1000_hw.h
e1000_main.c e1000: restore netif_poll_enable call but make sure IRQs are off 2007-05-30 09:52:48 -04:00
e1000_osdep.h
e1000_param.c e1000: ROUND_UP macro cleanup in drivers/net/e1000 2007-04-28 11:01:07 -04:00
e1000.h e1000: Fix msi enable leak on error, don't print error message, cleanup 2007-05-17 20:43:15 -04:00
Makefile