diff options
Diffstat (limited to 'drivers/message/fusion/mptscsih.c')
-rw-r--r-- | drivers/message/fusion/mptscsih.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index b774f45dfde4..cd4e8c0853d0 100644 --- a/drivers/message/fusion/mptscsih.c +++ b/drivers/message/fusion/mptscsih.c | |||
@@ -3447,7 +3447,7 @@ mptscsih_scandv_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *mr) | |||
3447 | * some type of error occurred. | 3447 | * some type of error occurred. |
3448 | */ | 3448 | */ |
3449 | MpiRaidActionReply_t *pr = (MpiRaidActionReply_t *)mr; | 3449 | MpiRaidActionReply_t *pr = (MpiRaidActionReply_t *)mr; |
3450 | if (pr->ActionStatus == MPI_RAID_ACTION_ASTATUS_SUCCESS) | 3450 | if (le16_to_cpu(pr->ActionStatus) == MPI_RAID_ACTION_ASTATUS_SUCCESS) |
3451 | completionCode = MPT_SCANDV_GOOD; | 3451 | completionCode = MPT_SCANDV_GOOD; |
3452 | else | 3452 | else |
3453 | completionCode = MPT_SCANDV_SOME_ERROR; | 3453 | completionCode = MPT_SCANDV_SOME_ERROR; |
@@ -3996,9 +3996,9 @@ mptscsih_synchronize_cache(MPT_SCSI_HOST *hd, int portnum) | |||
3996 | dnegoprintk(("syncronize cache: id=%d width=0 factor=MPT_ASYNC " | 3996 | dnegoprintk(("syncronize cache: id=%d width=0 factor=MPT_ASYNC " |
3997 | "offset=0 negoFlags=%x request=%x config=%x\n", | 3997 | "offset=0 negoFlags=%x request=%x config=%x\n", |
3998 | id, flags, requested, configuration)); | 3998 | id, flags, requested, configuration)); |
3999 | pcfg1Data->RequestedParameters = le32_to_cpu(requested); | 3999 | pcfg1Data->RequestedParameters = cpu_to_le32(requested); |
4000 | pcfg1Data->Reserved = 0; | 4000 | pcfg1Data->Reserved = 0; |
4001 | pcfg1Data->Configuration = le32_to_cpu(configuration); | 4001 | pcfg1Data->Configuration = cpu_to_le32(configuration); |
4002 | cfg.pageAddr = (bus<<8) | id; | 4002 | cfg.pageAddr = (bus<<8) | id; |
4003 | mpt_config(hd->ioc, &cfg); | 4003 | mpt_config(hd->ioc, &cfg); |
4004 | } | 4004 | } |
@@ -5248,7 +5248,7 @@ mptscsih_dv_parms(MPT_SCSI_HOST *hd, DVPARAMETERS *dv,void *pPage) | |||
5248 | /* Update tmax values with those from Device Page 0.*/ | 5248 | /* Update tmax values with those from Device Page 0.*/ |
5249 | pPage0 = (SCSIDevicePage0_t *) pPage; | 5249 | pPage0 = (SCSIDevicePage0_t *) pPage; |
5250 | if (pPage0) { | 5250 | if (pPage0) { |
5251 | val = cpu_to_le32(pPage0->NegotiatedParameters); | 5251 | val = le32_to_cpu(pPage0->NegotiatedParameters); |
5252 | dv->max.width = val & MPI_SCSIDEVPAGE0_NP_WIDE ? 1 : 0; | 5252 | dv->max.width = val & MPI_SCSIDEVPAGE0_NP_WIDE ? 1 : 0; |
5253 | dv->max.offset = (val&MPI_SCSIDEVPAGE0_NP_NEG_SYNC_OFFSET_MASK) >> 16; | 5253 | dv->max.offset = (val&MPI_SCSIDEVPAGE0_NP_NEG_SYNC_OFFSET_MASK) >> 16; |
5254 | dv->max.factor = (val&MPI_SCSIDEVPAGE0_NP_NEG_SYNC_PERIOD_MASK) >> 8; | 5254 | dv->max.factor = (val&MPI_SCSIDEVPAGE0_NP_NEG_SYNC_PERIOD_MASK) >> 8; |
@@ -5276,12 +5276,12 @@ mptscsih_dv_parms(MPT_SCSI_HOST *hd, DVPARAMETERS *dv,void *pPage) | |||
5276 | dv->now.offset, &val, &configuration, dv->now.flags); | 5276 | dv->now.offset, &val, &configuration, dv->now.flags); |
5277 | dnegoprintk(("Setting Max: id=%d width=%d factor=%x offset=%x negoFlags=%x request=%x config=%x\n", | 5277 | dnegoprintk(("Setting Max: id=%d width=%d factor=%x offset=%x negoFlags=%x request=%x config=%x\n", |
5278 | id, dv->now.width, dv->now.factor, dv->now.offset, dv->now.flags, val, configuration)); | 5278 | id, dv->now.width, dv->now.factor, dv->now.offset, dv->now.flags, val, configuration)); |
5279 | pPage1->RequestedParameters = le32_to_cpu(val); | 5279 | pPage1->RequestedParameters = cpu_to_le32(val); |
5280 | pPage1->Reserved = 0; | 5280 | pPage1->Reserved = 0; |
5281 | pPage1->Configuration = le32_to_cpu(configuration); | 5281 | pPage1->Configuration = cpu_to_le32(configuration); |
5282 | } | 5282 | } |
5283 | 5283 | ||
5284 | ddvprintk(("id=%d width=%d factor=%x offset=%x flags=%x request=%x configuration=%x\n", | 5284 | ddvprintk(("id=%d width=%d factor=%x offset=%x negoFlags=%x request=%x configuration=%x\n", |
5285 | id, dv->now.width, dv->now.factor, dv->now.offset, dv->now.flags, val, configuration)); | 5285 | id, dv->now.width, dv->now.factor, dv->now.offset, dv->now.flags, val, configuration)); |
5286 | break; | 5286 | break; |
5287 | 5287 | ||
@@ -5301,9 +5301,9 @@ mptscsih_dv_parms(MPT_SCSI_HOST *hd, DVPARAMETERS *dv,void *pPage) | |||
5301 | offset, &val, &configuration, negoFlags); | 5301 | offset, &val, &configuration, negoFlags); |
5302 | dnegoprintk(("Setting Min: id=%d width=%d factor=%x offset=%x negoFlags=%x request=%x config=%x\n", | 5302 | dnegoprintk(("Setting Min: id=%d width=%d factor=%x offset=%x negoFlags=%x request=%x config=%x\n", |
5303 | id, width, factor, offset, negoFlags, val, configuration)); | 5303 | id, width, factor, offset, negoFlags, val, configuration)); |
5304 | pPage1->RequestedParameters = le32_to_cpu(val); | 5304 | pPage1->RequestedParameters = cpu_to_le32(val); |
5305 | pPage1->Reserved = 0; | 5305 | pPage1->Reserved = 0; |
5306 | pPage1->Configuration = le32_to_cpu(configuration); | 5306 | pPage1->Configuration = cpu_to_le32(configuration); |
5307 | } | 5307 | } |
5308 | ddvprintk(("id=%d width=%d factor=%x offset=%x request=%x config=%x negoFlags=%x\n", | 5308 | ddvprintk(("id=%d width=%d factor=%x offset=%x request=%x config=%x negoFlags=%x\n", |
5309 | id, width, factor, offset, val, configuration, negoFlags)); | 5309 | id, width, factor, offset, val, configuration, negoFlags)); |
@@ -5377,12 +5377,12 @@ mptscsih_dv_parms(MPT_SCSI_HOST *hd, DVPARAMETERS *dv,void *pPage) | |||
5377 | if (pPage1) { | 5377 | if (pPage1) { |
5378 | mptscsih_setDevicePage1Flags (width, factor, offset, &val, | 5378 | mptscsih_setDevicePage1Flags (width, factor, offset, &val, |
5379 | &configuration, dv->now.flags); | 5379 | &configuration, dv->now.flags); |
5380 | dnegoprintk(("Finish: id=%d width=%d offset=%d factor=%x flags=%x request=%x config=%x\n", | 5380 | dnegoprintk(("Finish: id=%d width=%d offset=%d factor=%x negoFlags=%x request=%x config=%x\n", |
5381 | id, width, offset, factor, dv->now.flags, val, configuration)); | 5381 | id, width, offset, factor, dv->now.flags, val, configuration)); |
5382 | 5382 | ||
5383 | pPage1->RequestedParameters = le32_to_cpu(val); | 5383 | pPage1->RequestedParameters = cpu_to_le32(val); |
5384 | pPage1->Reserved = 0; | 5384 | pPage1->Reserved = 0; |
5385 | pPage1->Configuration = le32_to_cpu(configuration); | 5385 | pPage1->Configuration = cpu_to_le32(configuration); |
5386 | } | 5386 | } |
5387 | 5387 | ||
5388 | ddvprintk(("Finish: id=%d offset=%d factor=%x width=%d request=%x config=%x\n", | 5388 | ddvprintk(("Finish: id=%d offset=%d factor=%x width=%d request=%x config=%x\n", |