liquidio: VF interrupt initialization cleanup
authorRick Farrington <ricardo.farrington@cavium.com>
Wed, 31 May 2017 16:48:09 +0000 (09:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jun 2017 18:13:49 +0000 (14:13 -0400)
commit4c1588a27991c9047cbd3a109632597514722e47
tree7ca7bfda0211b2f829f60684bd998d4a845f27b3
parenta97051f4553551d13e586ab3cb6ae13093a44a81
liquidio: VF interrupt initialization cleanup

Set initialization state variable to (reflect interrupt initialization) at
correct time (immediately after having configured interrupts).  This fixes
problem of inconsistent IRQ allocation in case of [obscure] failure when
negotiating with PF driver during init.

Clean-up of interrupt enablement during initialization & avoid potential
race condition with chip-specific code (i.e. perform interrupt control in
main driver module).  Added explanatory comments regarding interrupt
enablement.

Signed-off-by: Rick Farrington <ricardo.farrington@cavium.com>
Signed-off-by: Satanand Burla <satananda.burla@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c