aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid/aachba.c
diff options
context:
space:
mode:
authorSalyzyn, Mark <Mark_Salyzyn@adaptec.com>2008-01-08 15:48:25 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-23 12:29:19 -0500
commita3940da5e6fe8b833eecdbca3fac9456b4204d6e (patch)
treee7254ab5376f92b427e283eba55e2f66a7ce1c19 /drivers/scsi/aacraid/aachba.c
parent06a43d1725f59a0f5e043bd06081c44ae528098e (diff)
[SCSI] aacraid: fix big endian issues
Big endian systems issues discovered in the aacraid driver. Somewhat reverses a patch from November 7th of last year that removed swap operations because they formerly were being assigned to an u8 array when they should have been assigned to an le32 array. This patch is largely inert for any little endian processor architecture. It resolves a bug in delivering the BlinkLED AIF event to registered applications when the adapter or associated hardware was reset due to ill health. A rare corner case occurrence, also largely unnoticed by any as it was a new (untested!) feature. Signed-off-by: Mark Salyzyn <aacraid@adaptec.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/aacraid/aachba.c')
-rw-r--r--drivers/scsi/aacraid/aachba.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c
index 94577c03a23a..3cddcc0901b2 100644
--- a/drivers/scsi/aacraid/aachba.c
+++ b/drivers/scsi/aacraid/aachba.c
@@ -1325,10 +1325,9 @@ int aac_get_adapter_info(struct aac_dev* dev)
1325 (int)sizeof(dev->supplement_adapter_info.VpdInfo.Tsid), 1325 (int)sizeof(dev->supplement_adapter_info.VpdInfo.Tsid),
1326 dev->supplement_adapter_info.VpdInfo.Tsid); 1326 dev->supplement_adapter_info.VpdInfo.Tsid);
1327 } 1327 }
1328 if (!aac_check_reset || 1328 if (!aac_check_reset || ((aac_check_reset != 1) &&
1329 ((aac_check_reset != 1) && 1329 (dev->supplement_adapter_info.SupportedOptions2 &
1330 (dev->supplement_adapter_info.SupportedOptions2 & 1330 AAC_OPTION_IGNORE_RESET))) {
1331 cpu_to_le32(AAC_OPTION_IGNORE_RESET)))) {
1332 printk(KERN_INFO "%s%d: Reset Adapter Ignored\n", 1331 printk(KERN_INFO "%s%d: Reset Adapter Ignored\n",
1333 dev->name, dev->id); 1332 dev->name, dev->id);
1334 } 1333 }