RE: [patch 1/7] mptbase: reset ioc initiator during PCI resume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday, March 04, 2008 4:24 PM, Andrew Morton  wrote: 
> Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx>
> Cc: "Moore, Eric" <Eric.Moore@xxxxxxx>
> Cc: <Sathya.Prakash@xxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> ---
> 
>  drivers/message/fusion/mptbase.c |    6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff -puN 
> drivers/message/fusion/mptbase.c~mptbase-reset-ioc-initiator-d
> uring-pci-resume drivers/message/fusion/mptbase.c
> --- 
> a/drivers/message/fusion/mptbase.c~mptbase-reset-ioc-initiator
> -during-pci-resume
> +++ a/drivers/message/fusion/mptbase.c
> @@ -1852,6 +1852,12 @@ mpt_resume(struct pci_dev *pdev)
>  		(mpt_GetIocState(ioc, 1) >> MPI_IOC_STATE_SHIFT),
>  		CHIPREG_READ32(&ioc->chip->Doorbell));
>  
> +	/* put ioc into READY_STATE */
> +	if(SendIocReset(ioc, 
> MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, CAN_SLEEP)) {
> +		printk(MYIOC_s_ERR_FMT
> +		"pci-resume:  IOC msg unit reset failed!\n", ioc->name);
> +	}
> +
>  	/* bring ioc to operational state */
>  	if ((recovery_state = mpt_do_ioc_recovery(ioc,
>  	    MPT_HOSTEVENT_IOC_RECOVER, CAN_SLEEP)) != 0) {
> _
>

Actually we have a different patch for this, which Sathya been working
on.

Eric 
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux