aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorSucheta Chakraborty <sucheta.chakraborty@qlogic.com>2014-04-14 10:02:19 -0400
committerDavid S. Miller <davem@davemloft.net>2014-04-14 13:43:52 -0400
commit4d52e1e8d1e198962dcbfabf9c06425c38eb23d0 (patch)
treecb4720c93b7c86d0af0ef93bd3950f247983a1c4 /drivers/net
parent463518a0cbd396aac83ee3d196897d585e173796 (diff)
qlcnic: Fix to send INIT_NIC_FUNC as first mailbox.
o INIT_NIC_FUNC should be first mailbox sent. Sending DCB capability and parameter query commands after that command. Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c2
-rw-r--r--drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c2
-rw-r--r--drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c5
3 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
index d211af70c7ec..3ca3118efb3a 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
@@ -2355,7 +2355,9 @@ int qlcnic_83xx_init(struct qlcnic_adapter *adapter, int pci_using_dac)
2355 goto disable_mbx_intr; 2355 goto disable_mbx_intr;
2356 2356
2357 qlcnic_83xx_clear_function_resources(adapter); 2357 qlcnic_83xx_clear_function_resources(adapter);
2358 qlcnic_dcb_enable(adapter->dcb);
2358 qlcnic_83xx_initialize_nic(adapter, 1); 2359 qlcnic_83xx_initialize_nic(adapter, 1);
2360 qlcnic_dcb_get_info(adapter->dcb);
2359 2361
2360 /* Configure default, SR-IOV or Virtual NIC mode of operation */ 2362 /* Configure default, SR-IOV or Virtual NIC mode of operation */
2361 err = qlcnic_83xx_configure_opmode(adapter); 2363 err = qlcnic_83xx_configure_opmode(adapter);
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c
index 7d4f54912bad..a51fe18f09a8 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c
@@ -330,8 +330,6 @@ static int __qlcnic_dcb_attach(struct qlcnic_dcb *dcb)
330 goto out_free_cfg; 330 goto out_free_cfg;
331 } 331 }
332 332
333 qlcnic_dcb_get_info(dcb);
334
335 return 0; 333 return 0;
336out_free_cfg: 334out_free_cfg:
337 kfree(dcb->cfg); 335 kfree(dcb->cfg);
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
index 309d05640883..84d011ed7ec2 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
@@ -2528,8 +2528,6 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
2528 goto err_out_free_hw; 2528 goto err_out_free_hw;
2529 } 2529 }
2530 2530
2531 qlcnic_dcb_enable(adapter->dcb);
2532
2533 if (qlcnic_read_mac_addr(adapter)) 2531 if (qlcnic_read_mac_addr(adapter))
2534 dev_warn(&pdev->dev, "failed to read mac addr\n"); 2532 dev_warn(&pdev->dev, "failed to read mac addr\n");
2535 2533
@@ -2549,7 +2547,10 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
2549 "Device does not support MSI interrupts\n"); 2547 "Device does not support MSI interrupts\n");
2550 2548
2551 if (qlcnic_82xx_check(adapter)) { 2549 if (qlcnic_82xx_check(adapter)) {
2550 qlcnic_dcb_enable(adapter->dcb);
2551 qlcnic_dcb_get_info(adapter->dcb);
2552 err = qlcnic_setup_intr(adapter); 2552 err = qlcnic_setup_intr(adapter);
2553
2553 if (err) { 2554 if (err) {
2554 dev_err(&pdev->dev, "Failed to setup interrupt\n"); 2555 dev_err(&pdev->dev, "Failed to setup interrupt\n");
2555 goto err_out_disable_msi; 2556 goto err_out_disable_msi;