be2net: enable interrupts in EEH resume
authorKalesh AP <kalesh.purayil@emulex.com>
Tue, 13 May 2014 08:33:11 +0000 (14:03 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 May 2014 19:36:39 +0000 (15:36 -0400)
On some BE3 FW versions, after a HW reset, interrupts will remain disabled
for each function. So, explicitly enable the interrupts in the eeh_resume
handler, else after an eeh recovery interrupts wouldn't work.

Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c

index a18645407d2152b43353a50b76ccf6317ef90151..dc19bc5dec7732c02220e009ad08ffc393aa1c2c 100644 (file)
@@ -4949,6 +4949,12 @@ static void be_eeh_resume(struct pci_dev *pdev)
        if (status)
                goto err;
 
+       /* On some BE3 FW versions, after a HW reset,
+        * interrupts will remain disabled for each function.
+        * So, explicitly enable interrupts
+        */
+       be_intr_set(adapter, true);
+
        /* tell fw we're ready to fire cmds */
        status = be_cmd_fw_init(adapter);
        if (status)