lpfc_init.c (8b47ae69e049ae0b3373859d901f0334322f9fe9) lpfc_init.c (1165a5c2206cf8e4811caab145d16a8d87c69111)
1/*******************************************************************
2 * This file is part of the Emulex Linux Device Driver for *
3 * Fibre Channel Host Bus Adapters. *
4 * Copyright (C) 2017-2018 Broadcom. All Rights Reserved. The term *
5 * “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. *
6 * Copyright (C) 2004-2016 Emulex. All rights reserved. *
7 * EMULEX and SLI are trademarks of Emulex. *
8 * www.broadcom.com *

--- 10676 unchanged lines hidden (view full) ---

10685 /* Disable SR-IOV if enabled */
10686 if (phba->cfg_sriov_nr_virtfn)
10687 pci_disable_sriov(pdev);
10688
10689 /* Stop kthread signal shall trigger work_done one more time */
10690 kthread_stop(phba->worker_thread);
10691
10692 /* Disable FW logging to host memory */
1/*******************************************************************
2 * This file is part of the Emulex Linux Device Driver for *
3 * Fibre Channel Host Bus Adapters. *
4 * Copyright (C) 2017-2018 Broadcom. All Rights Reserved. The term *
5 * “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. *
6 * Copyright (C) 2004-2016 Emulex. All rights reserved. *
7 * EMULEX and SLI are trademarks of Emulex. *
8 * www.broadcom.com *

--- 10676 unchanged lines hidden (view full) ---

10685 /* Disable SR-IOV if enabled */
10686 if (phba->cfg_sriov_nr_virtfn)
10687 pci_disable_sriov(pdev);
10688
10689 /* Stop kthread signal shall trigger work_done one more time */
10690 kthread_stop(phba->worker_thread);
10691
10692 /* Disable FW logging to host memory */
10693 writel(LPFC_CTL_PDEV_CTL_DDL_RAS,
10694 phba->sli4_hba.conf_regs_memmap_p + LPFC_CTL_PDEV_CTL_OFFSET);
10693 lpfc_ras_stop_fwlog(phba);
10695
10694
10696 /* Free RAS DMA memory */
10697 if (phba->ras_fwlog.ras_enabled == true)
10698 lpfc_sli4_ras_dma_free(phba);
10699
10700 /* Unset the queues shared with the hardware then release all
10701 * allocated resources.
10702 */
10703 lpfc_sli4_queue_unset(phba);
10704 lpfc_sli4_queue_destroy(phba);
10705
10706 /* Reset SLI4 HBA FCoE function */
10707 lpfc_pci_function_reset(phba);
10708
10695 /* Unset the queues shared with the hardware then release all
10696 * allocated resources.
10697 */
10698 lpfc_sli4_queue_unset(phba);
10699 lpfc_sli4_queue_destroy(phba);
10700
10701 /* Reset SLI4 HBA FCoE function */
10702 lpfc_pci_function_reset(phba);
10703
10704 /* Free RAS DMA memory */
10705 if (phba->ras_fwlog.ras_enabled)
10706 lpfc_sli4_ras_dma_free(phba);
10707
10709 /* Stop the SLI4 device port */
10710 phba->pport->work_port_events = 0;
10711}
10712
10713 /**
10714 * lpfc_pc_sli4_params_get - Get the SLI4_PARAMS port capabilities.
10715 * @phba: Pointer to HBA context object.
10716 * @mboxq: Pointer to the mailboxq memory for the mailbox command response.

--- 2219 unchanged lines hidden ---
10708 /* Stop the SLI4 device port */
10709 phba->pport->work_port_events = 0;
10710}
10711
10712 /**
10713 * lpfc_pc_sli4_params_get - Get the SLI4_PARAMS port capabilities.
10714 * @phba: Pointer to HBA context object.
10715 * @mboxq: Pointer to the mailboxq memory for the mailbox command response.

--- 2219 unchanged lines hidden ---