/* This routine is called to prepare the SLI3 device for PCI slot recover. It aborts and stops all the on-going I/Os on the pci device.  */
static void lpfc_sli_prep_dev_for_recover(struct lpfc_hba *phba)
/* This routine is called to prepare the SLI3 device for PCI slot recover. It aborts and stops all the on-going I/Os on the pci device.  */
static void lpfc_sli_prep_dev_for_recover(struct lpfc_hba *phba)
{
	lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
			"2723 PCI channel I/O abort preparing for recovery\n");
	lpfc_offline_prep(phba);
	spin_lock_irq(&phba->hbalock);
	phba->sli.sli_flag &= ~LPFC_SLI_ACTIVE;
	spin_unlock_irq(&phba->hbalock);
	lpfc_offline(phba);
}