aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
diff options
context:
space:
mode:
authorSucheta Chakraborty <sucheta.chakraborty@qlogic.com>2013-02-18 07:06:14 -0500
committerDavid S. Miller <davem@davemloft.net>2013-02-19 00:47:01 -0500
commit7dd90cf171cae71f5f92d8c91299f0a8a0b21661 (patch)
treeed9985f0180beced1791e88be76f1c6884728017 /drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
parent114ef38aded4457f6e412ef294e09932fe28f026 (diff)
qlcnic: fix mailbox interrupt.
o Config interrupt is not needed for mailbox interrupts. Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c')
-rw-r--r--drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
index b95316831587..f084dc12a733 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
@@ -1965,11 +1965,8 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1965 return 0; 1965 return 0;
1966 1966
1967err_out_disable_mbx_intr: 1967err_out_disable_mbx_intr:
1968 if (qlcnic_83xx_check(adapter)) { 1968 if (qlcnic_83xx_check(adapter))
1969 if (adapter->flags & QLCNIC_MSIX_ENABLED)
1970 qlcnic_83xx_config_intrpt(adapter, 0);
1971 qlcnic_83xx_free_mbx_intr(adapter); 1969 qlcnic_83xx_free_mbx_intr(adapter);
1972 }
1973 1970
1974err_out_disable_msi: 1971err_out_disable_msi:
1975 qlcnic_teardown_intr(adapter); 1972 qlcnic_teardown_intr(adapter);
@@ -2015,8 +2012,6 @@ static void qlcnic_remove(struct pci_dev *pdev)
2015 unregister_netdev(netdev); 2012 unregister_netdev(netdev);
2016 2013
2017 if (qlcnic_83xx_check(adapter)) { 2014 if (qlcnic_83xx_check(adapter)) {
2018 if (adapter->flags & QLCNIC_MSIX_ENABLED)
2019 qlcnic_83xx_config_intrpt(adapter, 0);
2020 qlcnic_83xx_free_mbx_intr(adapter); 2015 qlcnic_83xx_free_mbx_intr(adapter);
2021 qlcnic_83xx_register_nic_idc_func(adapter, 0); 2016 qlcnic_83xx_register_nic_idc_func(adapter, 0);
2022 cancel_delayed_work_sync(&adapter->idc_aen_work); 2017 cancel_delayed_work_sync(&adapter->idc_aen_work);
@@ -3107,8 +3102,6 @@ static pci_ers_result_t qlcnic_io_error_detected(struct pci_dev *pdev,
3107 qlcnic_down(adapter, netdev); 3102 qlcnic_down(adapter, netdev);
3108 3103
3109 if (qlcnic_83xx_check(adapter)) { 3104 if (qlcnic_83xx_check(adapter)) {
3110 if (adapter->flags & QLCNIC_MSIX_ENABLED)
3111 qlcnic_83xx_config_intrpt(adapter, 0);
3112 qlcnic_83xx_free_mbx_intr(adapter); 3105 qlcnic_83xx_free_mbx_intr(adapter);
3113 qlcnic_83xx_register_nic_idc_func(adapter, 0); 3106 qlcnic_83xx_register_nic_idc_func(adapter, 0);
3114 cancel_delayed_work_sync(&adapter->idc_aen_work); 3107 cancel_delayed_work_sync(&adapter->idc_aen_work);
@@ -3203,13 +3196,11 @@ int qlcnic_set_max_rss(struct qlcnic_adapter *adapter, u8 data, size_t len)
3203 if (netif_running(netdev)) 3196 if (netif_running(netdev))
3204 __qlcnic_down(adapter, netdev); 3197 __qlcnic_down(adapter, netdev);
3205 3198
3206 if (qlcnic_83xx_check(adapter)) { 3199 qlcnic_detach(adapter);
3207 if (adapter->flags & QLCNIC_MSIX_ENABLED) 3200
3208 qlcnic_83xx_config_intrpt(adapter, 0); 3201 if (qlcnic_83xx_check(adapter))
3209 qlcnic_83xx_free_mbx_intr(adapter); 3202 qlcnic_83xx_free_mbx_intr(adapter);
3210 }
3211 3203
3212 qlcnic_detach(adapter);
3213 qlcnic_teardown_intr(adapter); 3204 qlcnic_teardown_intr(adapter);
3214 err = qlcnic_setup_intr(adapter, data); 3205 err = qlcnic_setup_intr(adapter, data);
3215 if (err) { 3206 if (err) {