[PATCH 2/7]: Revised [PATCH 27/42]: SCSI: add PCI error recovery to IPR dev driver
Brian King
brking at us.ibm.com
Tue Nov 8 08:40:32 EST 2005
linas wrote:
> +/** ipr_eeh_slot_reset - called when pci slot has been reset.
> + *
> + * This routine is called by the pci error recovery recovery
> + * code after the PCI slot has been reset, just before we
> + * should resume normal operations.
> + */
> +static pers_result_t ipr_eeh_slot_reset(struct pci_dev *pdev)
> +{
> + unsigned long flags = 0;
> + struct ipr_ioa_cfg *ioa_cfg = pci_get_drvdata(pdev);
> +
> + // pci_enable_device(pdev);
> + // pci_set_master(pdev);
I assume you want remove these two lines... The pci config space
restore in ipr's reset handling should cover them.
> + spin_lock_irqsave(ioa_cfg->host->host_lock, flags);
> + _ipr_initiate_ioa_reset(ioa_cfg, ipr_reset_restore_cfg_space,
> + IPR_SHUTDOWN_NONE);
> + spin_unlock_irqrestore(ioa_cfg->host->host_lock, flags);
> +
> + return PERS_RESULT_RECOVERED;
> +}
--
Brian King
eServer Storage I/O
IBM Linux Technology Center
More information about the Linuxppc64-dev
mailing list