diff options
author | Kashyap, Desai <kashyap.desai@lsi.com> | 2011-06-14 01:24:56 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-06-29 17:07:00 -0400 |
commit | c97951ec46d4b076c2236b77db34eeed6dddb8eb (patch) | |
tree | 992d5e85f3dbc23bb702e9a295cae5c477683037 /drivers/scsi/mpt2sas/mpt2sas_scsih.c | |
parent | d7e01dc669e3f69d396ce3972ba87b7d678a94e4 (diff) |
[SCSI] mpt2sas: Fixed Big Indian Issues on 32 bit PPC
This patch addresses many endian issues solved by runing sparse with the
option __CHECK_ENDIAN__ turned on.
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_scsih.c')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_scsih.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index a7dbc6825f5f..e327a3c03608 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c | |||
@@ -1956,7 +1956,7 @@ _scsih_slave_configure(struct scsi_device *sdev) | |||
1956 | case MPI2_RAID_VOL_TYPE_RAID1E: | 1956 | case MPI2_RAID_VOL_TYPE_RAID1E: |
1957 | qdepth = MPT2SAS_RAID_QUEUE_DEPTH; | 1957 | qdepth = MPT2SAS_RAID_QUEUE_DEPTH; |
1958 | if (ioc->manu_pg10.OEMIdentifier && | 1958 | if (ioc->manu_pg10.OEMIdentifier && |
1959 | (ioc->manu_pg10.GenericFlags0 & | 1959 | (le32_to_cpu(ioc->manu_pg10.GenericFlags0) & |
1960 | MFG10_GF0_R10_DISPLAY) && | 1960 | MFG10_GF0_R10_DISPLAY) && |
1961 | !(raid_device->num_pds % 2)) | 1961 | !(raid_device->num_pds % 2)) |
1962 | r_level = "RAID10"; | 1962 | r_level = "RAID10"; |
@@ -4598,7 +4598,7 @@ _scsih_expander_add(struct MPT2SAS_ADAPTER *ioc, u16 handle) | |||
4598 | Mpi2SasEnclosurePage0_t enclosure_pg0; | 4598 | Mpi2SasEnclosurePage0_t enclosure_pg0; |
4599 | u32 ioc_status; | 4599 | u32 ioc_status; |
4600 | u16 parent_handle; | 4600 | u16 parent_handle; |
4601 | __le64 sas_address, sas_address_parent = 0; | 4601 | u64 sas_address, sas_address_parent = 0; |
4602 | int i; | 4602 | int i; |
4603 | unsigned long flags; | 4603 | unsigned long flags; |
4604 | struct _sas_port *mpt2sas_port = NULL; | 4604 | struct _sas_port *mpt2sas_port = NULL; |
@@ -5404,7 +5404,7 @@ _scsih_sas_device_status_change_event(struct MPT2SAS_ADAPTER *ioc, | |||
5404 | { | 5404 | { |
5405 | struct MPT2SAS_TARGET *target_priv_data; | 5405 | struct MPT2SAS_TARGET *target_priv_data; |
5406 | struct _sas_device *sas_device; | 5406 | struct _sas_device *sas_device; |
5407 | __le64 sas_address; | 5407 | u64 sas_address; |
5408 | unsigned long flags; | 5408 | unsigned long flags; |
5409 | Mpi2EventDataSasDeviceStatusChange_t *event_data = | 5409 | Mpi2EventDataSasDeviceStatusChange_t *event_data = |
5410 | fw_event->event_data; | 5410 | fw_event->event_data; |
@@ -6566,7 +6566,7 @@ _scsih_search_responding_expanders(struct MPT2SAS_ADAPTER *ioc) | |||
6566 | Mpi2ExpanderPage0_t expander_pg0; | 6566 | Mpi2ExpanderPage0_t expander_pg0; |
6567 | Mpi2ConfigReply_t mpi_reply; | 6567 | Mpi2ConfigReply_t mpi_reply; |
6568 | u16 ioc_status; | 6568 | u16 ioc_status; |
6569 | __le64 sas_address; | 6569 | u64 sas_address; |
6570 | u16 handle; | 6570 | u16 handle; |
6571 | 6571 | ||
6572 | printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, __func__); | 6572 | printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, __func__); |
@@ -7505,7 +7505,7 @@ _scsih_suspend(struct pci_dev *pdev, pm_message_t state) | |||
7505 | { | 7505 | { |
7506 | struct Scsi_Host *shost = pci_get_drvdata(pdev); | 7506 | struct Scsi_Host *shost = pci_get_drvdata(pdev); |
7507 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); | 7507 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); |
7508 | u32 device_state; | 7508 | pci_power_t device_state; |
7509 | 7509 | ||
7510 | mpt2sas_base_stop_watchdog(ioc); | 7510 | mpt2sas_base_stop_watchdog(ioc); |
7511 | scsi_block_requests(shost); | 7511 | scsi_block_requests(shost); |
@@ -7532,7 +7532,7 @@ _scsih_resume(struct pci_dev *pdev) | |||
7532 | { | 7532 | { |
7533 | struct Scsi_Host *shost = pci_get_drvdata(pdev); | 7533 | struct Scsi_Host *shost = pci_get_drvdata(pdev); |
7534 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); | 7534 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); |
7535 | u32 device_state = pdev->current_state; | 7535 | pci_power_t device_state = pdev->current_state; |
7536 | int r; | 7536 | int r; |
7537 | 7537 | ||
7538 | printk(MPT2SAS_INFO_FMT "pdev=0x%p, slot=%s, previous " | 7538 | printk(MPT2SAS_INFO_FMT "pdev=0x%p, slot=%s, previous " |