diff options
Diffstat (limited to 'drivers/message/fusion/mptscsih.c')
-rw-r--r-- | drivers/message/fusion/mptscsih.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index b9d4f78725b4..b774f45dfde4 100644 --- a/drivers/message/fusion/mptscsih.c +++ b/drivers/message/fusion/mptscsih.c | |||
@@ -3955,7 +3955,7 @@ mptscsih_synchronize_cache(MPT_SCSI_HOST *hd, int portnum) | |||
3955 | header1.PageLength = ioc->spi_data.sdp1length; | 3955 | header1.PageLength = ioc->spi_data.sdp1length; |
3956 | header1.PageNumber = 1; | 3956 | header1.PageNumber = 1; |
3957 | header1.PageType = MPI_CONFIG_PAGETYPE_SCSI_DEVICE; | 3957 | header1.PageType = MPI_CONFIG_PAGETYPE_SCSI_DEVICE; |
3958 | cfg.hdr = &header1; | 3958 | cfg.cfghdr.hdr = &header1; |
3959 | cfg.physAddr = cfg1_dma_addr; | 3959 | cfg.physAddr = cfg1_dma_addr; |
3960 | cfg.action = MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT; | 3960 | cfg.action = MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT; |
3961 | cfg.dir = 1; | 3961 | cfg.dir = 1; |
@@ -4353,7 +4353,7 @@ mptscsih_doDv(MPT_SCSI_HOST *hd, int bus_number, int id) | |||
4353 | /* Prep cfg structure | 4353 | /* Prep cfg structure |
4354 | */ | 4354 | */ |
4355 | cfg.pageAddr = (bus<<8) | id; | 4355 | cfg.pageAddr = (bus<<8) | id; |
4356 | cfg.hdr = NULL; | 4356 | cfg.cfghdr.hdr = NULL; |
4357 | 4357 | ||
4358 | /* Prep SDP0 header | 4358 | /* Prep SDP0 header |
4359 | */ | 4359 | */ |
@@ -4399,7 +4399,7 @@ mptscsih_doDv(MPT_SCSI_HOST *hd, int bus_number, int id) | |||
4399 | pcfg1Data = (SCSIDevicePage1_t *) (pDvBuf + sz); | 4399 | pcfg1Data = (SCSIDevicePage1_t *) (pDvBuf + sz); |
4400 | cfg1_dma_addr = dvbuf_dma + sz; | 4400 | cfg1_dma_addr = dvbuf_dma + sz; |
4401 | 4401 | ||
4402 | /* Skip this ID? Set cfg.hdr to force config page write | 4402 | /* Skip this ID? Set cfg.cfghdr.hdr to force config page write |
4403 | */ | 4403 | */ |
4404 | { | 4404 | { |
4405 | ScsiCfgData *pspi_data = &hd->ioc->spi_data; | 4405 | ScsiCfgData *pspi_data = &hd->ioc->spi_data; |
@@ -4417,7 +4417,7 @@ mptscsih_doDv(MPT_SCSI_HOST *hd, int bus_number, int id) | |||
4417 | 4417 | ||
4418 | dv.cmd = MPT_SET_MAX; | 4418 | dv.cmd = MPT_SET_MAX; |
4419 | mptscsih_dv_parms(hd, &dv, (void *)pcfg1Data); | 4419 | mptscsih_dv_parms(hd, &dv, (void *)pcfg1Data); |
4420 | cfg.hdr = &header1; | 4420 | cfg.cfghdr.hdr = &header1; |
4421 | 4421 | ||
4422 | /* Save the final negotiated settings to | 4422 | /* Save the final negotiated settings to |
4423 | * SCSI device page 1. | 4423 | * SCSI device page 1. |
@@ -4483,7 +4483,7 @@ mptscsih_doDv(MPT_SCSI_HOST *hd, int bus_number, int id) | |||
4483 | dv.cmd = MPT_SET_MIN; | 4483 | dv.cmd = MPT_SET_MIN; |
4484 | mptscsih_dv_parms(hd, &dv, (void *)pcfg1Data); | 4484 | mptscsih_dv_parms(hd, &dv, (void *)pcfg1Data); |
4485 | 4485 | ||
4486 | cfg.hdr = &header1; | 4486 | cfg.cfghdr.hdr = &header1; |
4487 | cfg.physAddr = cfg1_dma_addr; | 4487 | cfg.physAddr = cfg1_dma_addr; |
4488 | cfg.action = MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT; | 4488 | cfg.action = MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT; |
4489 | cfg.dir = 1; | 4489 | cfg.dir = 1; |
@@ -4637,7 +4637,7 @@ mptscsih_doDv(MPT_SCSI_HOST *hd, int bus_number, int id) | |||
4637 | u32 sdp0_info; | 4637 | u32 sdp0_info; |
4638 | u32 sdp0_nego; | 4638 | u32 sdp0_nego; |
4639 | 4639 | ||
4640 | cfg.hdr = &header0; | 4640 | cfg.cfghdr.hdr = &header0; |
4641 | cfg.physAddr = cfg0_dma_addr; | 4641 | cfg.physAddr = cfg0_dma_addr; |
4642 | cfg.action = MPI_CONFIG_ACTION_PAGE_READ_CURRENT; | 4642 | cfg.action = MPI_CONFIG_ACTION_PAGE_READ_CURRENT; |
4643 | cfg.dir = 0; | 4643 | cfg.dir = 0; |
@@ -4722,7 +4722,7 @@ mptscsih_doDv(MPT_SCSI_HOST *hd, int bus_number, int id) | |||
4722 | * 4) release | 4722 | * 4) release |
4723 | * 5) update nego parms to target struct | 4723 | * 5) update nego parms to target struct |
4724 | */ | 4724 | */ |
4725 | cfg.hdr = &header1; | 4725 | cfg.cfghdr.hdr = &header1; |
4726 | cfg.physAddr = cfg1_dma_addr; | 4726 | cfg.physAddr = cfg1_dma_addr; |
4727 | cfg.action = MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT; | 4727 | cfg.action = MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT; |
4728 | cfg.dir = 1; | 4728 | cfg.dir = 1; |
@@ -5121,7 +5121,7 @@ target_done: | |||
5121 | 5121 | ||
5122 | /* Set if cfg1_dma_addr contents is valid | 5122 | /* Set if cfg1_dma_addr contents is valid |
5123 | */ | 5123 | */ |
5124 | if ((cfg.hdr != NULL) && (retcode == 0)){ | 5124 | if ((cfg.cfghdr.hdr != NULL) && (retcode == 0)){ |
5125 | /* If disk, not U320, disable QAS | 5125 | /* If disk, not U320, disable QAS |
5126 | */ | 5126 | */ |
5127 | if ((inq0 == 0) && (dv.now.factor > MPT_ULTRA320)) { | 5127 | if ((inq0 == 0) && (dv.now.factor > MPT_ULTRA320)) { |
@@ -5137,7 +5137,7 @@ target_done: | |||
5137 | * skip save of the final negotiated settings to | 5137 | * skip save of the final negotiated settings to |
5138 | * SCSI device page 1. | 5138 | * SCSI device page 1. |
5139 | * | 5139 | * |
5140 | cfg.hdr = &header1; | 5140 | cfg.cfghdr.hdr = &header1; |
5141 | cfg.physAddr = cfg1_dma_addr; | 5141 | cfg.physAddr = cfg1_dma_addr; |
5142 | cfg.action = MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT; | 5142 | cfg.action = MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT; |
5143 | cfg.dir = 1; | 5143 | cfg.dir = 1; |