Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19132
b: refs/heads/master
c: d8e925d
h: refs/heads/master
v: v3
  • Loading branch information
Moore, Eric authored and James Bottomley committed Jan 31, 2006
1 parent 6ce8ce5 commit bfed5db
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb221849540b7f4165c58b6c79d98b97ac902fdb
refs/heads/master: d8e925dc8850c01e36e6b2acb08ed0fbdc38b9f1
8 changes: 8 additions & 0 deletions trunk/drivers/message/fusion/mptbase.c
Original file line number Diff line number Diff line change
Expand Up @@ -4598,6 +4598,14 @@ mpt_GetScsiPortSettings(MPT_ADAPTER *ioc, int portnum)
SCSIPortPage2_t *pPP2 = (SCSIPortPage2_t *) pbuf;
MpiDeviceInfo_t *pdevice = NULL;

/*
* Save "Set to Avoid SCSI Bus Resets" flag
*/
ioc->spi_data.bus_reset =
(le32_to_cpu(pPP2->PortFlags) &
MPI_SCSIPORTPAGE2_PORT_FLAGS_AVOID_SCSI_RESET) ?
0 : 1 ;

/* Save the Port Page 2 data
* (reformat into a 32bit quantity)
*/
Expand Down
10 changes: 9 additions & 1 deletion trunk/drivers/message/fusion/mptspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,14 @@ mptspi_probe(struct pci_dev *pdev, const struct pci_device_id *id)
goto out_mptspi_probe;
}

/*
* issue internal bus reset
*/
if (ioc->spi_data.bus_reset)
mptscsih_TMHandler(hd,
MPI_SCSITASKMGMT_TASKTYPE_RESET_BUS,
0, 0, 0, 0, 5);

scsi_scan_host(sh);
return 0;

Expand Down Expand Up @@ -445,7 +453,7 @@ static void __exit
mptspi_exit(void)
{
pci_unregister_driver(&mptspi_driver);

mpt_reset_deregister(mptspiDoneCtx);
dprintk((KERN_INFO MYNAM
": Deregistered for IOC reset notifications\n"));
Expand Down

0 comments on commit bfed5db

Please sign in to comment.