]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4vf: Enable interrupts before we register our network devices
authorHariprasad Shenai <hariprasad@chelsio.com>
Tue, 8 Mar 2016 05:20:17 +0000 (10:50 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Mar 2016 21:12:25 +0000 (16:12 -0500)
commitecd720bc4a995c0119c79af6738958476013dee1
tree3f074725686ab977c0a85bdb47fdde1e1c97493f
parentc00d1f357c00efefa0edd16dbcaa42b956021188
cxgb4vf: Enable interrupts before we register our network devices

This avoids a race condition where a system that has network devices set up
to be automatically configured and we get the first Port Link Status
message from the firmware on the Asynchronous Firmware Event Queue before
we've enabled interrupts. If that happens, we end up losing the interrupt
and never realizing that the links has actually come up.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c