]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
nfp: always unmask aux interrupts at init
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 10 Jan 2018 02:14:28 +0000 (18:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 20:50:04 +0000 (15:50 -0500)
commitfc2336505fb49a8b932a0a67a9745c408b79992c
tree3059e766d00a22e433f888d6e7c33070afa0010d
parent78bbb15f2239bc8e663aa20bbe1987c91a0b75f6
nfp: always unmask aux interrupts at init

The link state and exception interrupts may be masked when we probe.
The firmware should in theory prevent sending (and automasking) those
interrupts if the device is disabled, but if my reading of the FW code
is correct there are firmwares out there with race conditions in this
area.  The interrupt may also be masked if previous driver which used
the device was malfunctioning and we didn't load the FW (there is no
other good way to comprehensively reset the PF).

Note that FW unmasks the data interrupts by itself when vNIC is
enabled, such helpful operation is not performed for LSC/EXN interrupts.

Always unmask the auxiliary interrupts after request_irq().  On the
remove path add missing PCI write flush before free_irq().

Fixes: 4c3523623dc0 ("net: add driver for Netronome NFP4000/NFP6000 NIC VFs")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c