diff options
| author | Moore, Eric <[email protected]> | 2006-01-17 01:53:06 +0000 |
|---|---|---|
| committer | James Bottomley <jejb@mulgrave.(none)> | 2006-01-31 20:39:51 +0000 |
| commit | d8e925dc8850c01e36e6b2acb08ed0fbdc38b9f1 (patch) | |
| tree | 08be691a42c50f2b815f35f954ec85eab1ea5df4 /drivers/message/fusion/mptbase.c | |
| parent | [SCSI] aic79xx: Fix timer handling (diff) | |
| download | kernel-d8e925dc8850c01e36e6b2acb08ed0fbdc38b9f1.tar.gz kernel-d8e925dc8850c01e36e6b2acb08ed0fbdc38b9f1.zip | |
[SCSI] fusion: spi bus reset when driver loads
This patch is for spi. This issues bus reset when driver
loads. Handling cases when initator has negotiated for packetized,
and target negotiated for non-packetized; effectly this bus reset
is getting both target and initiator on the same sheet of music.
Signed-off-by: Eric Moore <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
| -rw-r--r-- | drivers/message/fusion/mptbase.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index d890b2b8a93e..2806662a9cf9 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c @@ -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) */ |
