Commit 2d177be8 authored by Kalesh AP's avatar Kalesh AP Committed by David S. Miller

be2net: FLR must be first cmd issued to Lancer FW

Lancer FW requires that the first cmd issued by the host-driver be an FLR.
So, re-order be_probe() to move be_cmd_function_reset() ahead of
be_cmd_fw_init().
Signed-off-by: default avatarKalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: default avatarSomnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 28710c55
...@@ -4174,23 +4174,23 @@ static int be_probe(struct pci_dev *pdev, const struct pci_device_id *pdev_id) ...@@ -4174,23 +4174,23 @@ static int be_probe(struct pci_dev *pdev, const struct pci_device_id *pdev_id)
goto ctrl_clean; goto ctrl_clean;
} }
/* tell fw we're ready to fire cmds */
status = be_cmd_fw_init(adapter);
if (status)
goto ctrl_clean;
if (be_reset_required(adapter)) { if (be_reset_required(adapter)) {
status = be_cmd_reset_function(adapter); status = be_cmd_reset_function(adapter);
if (status) if (status)
goto ctrl_clean; goto ctrl_clean;
}
/* Wait for interrupts to quiesce after an FLR */ /* Wait for interrupts to quiesce after an FLR */
msleep(100); msleep(100);
}
/* Allow interrupts for other ULPs running on NIC function */ /* Allow interrupts for other ULPs running on NIC function */
be_intr_set(adapter, true); be_intr_set(adapter, true);
/* tell fw we're ready to fire cmds */
status = be_cmd_fw_init(adapter);
if (status)
goto ctrl_clean;
status = be_stats_init(adapter); status = be_stats_init(adapter);
if (status) if (status)
goto ctrl_clean; goto ctrl_clean;
...@@ -4400,12 +4400,12 @@ static void be_eeh_resume(struct pci_dev *pdev) ...@@ -4400,12 +4400,12 @@ static void be_eeh_resume(struct pci_dev *pdev)
pci_save_state(pdev); pci_save_state(pdev);
/* tell fw we're ready to fire cmds */ status = be_cmd_reset_function(adapter);
status = be_cmd_fw_init(adapter);
if (status) if (status)
goto err; goto err;
status = be_cmd_reset_function(adapter); /* tell fw we're ready to fire cmds */
status = be_cmd_fw_init(adapter);
if (status) if (status)
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment