diff options
Diffstat (limited to 'drivers/scsi/aacraid/aachba.c')
-rw-r--r-- | drivers/scsi/aacraid/aachba.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c index ad8912cbe6e7..641c303d28ef 100644 --- a/drivers/scsi/aacraid/aachba.c +++ b/drivers/scsi/aacraid/aachba.c | |||
@@ -981,7 +981,7 @@ static int aac_read_block(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 | |||
981 | aac_fib_init(fib); | 981 | aac_fib_init(fib); |
982 | readcmd = (struct aac_read *) fib_data(fib); | 982 | readcmd = (struct aac_read *) fib_data(fib); |
983 | readcmd->command = cpu_to_le32(VM_CtBlockRead); | 983 | readcmd->command = cpu_to_le32(VM_CtBlockRead); |
984 | readcmd->cid = cpu_to_le16(scmd_id(cmd)); | 984 | readcmd->cid = cpu_to_le32(scmd_id(cmd)); |
985 | readcmd->block = cpu_to_le32((u32)(lba&0xffffffff)); | 985 | readcmd->block = cpu_to_le32((u32)(lba&0xffffffff)); |
986 | readcmd->count = cpu_to_le32(count * 512); | 986 | readcmd->count = cpu_to_le32(count * 512); |
987 | 987 | ||
@@ -1072,7 +1072,7 @@ static int aac_write_block(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u3 | |||
1072 | aac_fib_init(fib); | 1072 | aac_fib_init(fib); |
1073 | writecmd = (struct aac_write *) fib_data(fib); | 1073 | writecmd = (struct aac_write *) fib_data(fib); |
1074 | writecmd->command = cpu_to_le32(VM_CtBlockWrite); | 1074 | writecmd->command = cpu_to_le32(VM_CtBlockWrite); |
1075 | writecmd->cid = cpu_to_le16(scmd_id(cmd)); | 1075 | writecmd->cid = cpu_to_le32(scmd_id(cmd)); |
1076 | writecmd->block = cpu_to_le32((u32)(lba&0xffffffff)); | 1076 | writecmd->block = cpu_to_le32((u32)(lba&0xffffffff)); |
1077 | writecmd->count = cpu_to_le32(count * 512); | 1077 | writecmd->count = cpu_to_le32(count * 512); |
1078 | writecmd->sg.count = cpu_to_le32(1); | 1078 | writecmd->sg.count = cpu_to_le32(1); |
@@ -1305,9 +1305,10 @@ int aac_get_adapter_info(struct aac_dev* dev) | |||
1305 | (int)sizeof(dev->supplement_adapter_info.VpdInfo.Tsid), | 1305 | (int)sizeof(dev->supplement_adapter_info.VpdInfo.Tsid), |
1306 | dev->supplement_adapter_info.VpdInfo.Tsid); | 1306 | dev->supplement_adapter_info.VpdInfo.Tsid); |
1307 | } | 1307 | } |
1308 | if (!aac_check_reset || ((aac_check_reset != 1) && | 1308 | if (!aac_check_reset || |
1309 | (dev->supplement_adapter_info.SupportedOptions2 & | 1309 | ((aac_check_reset != 1) && |
1310 | le32_to_cpu(AAC_OPTION_IGNORE_RESET)))) { | 1310 | (dev->supplement_adapter_info.SupportedOptions2 & |
1311 | cpu_to_le32(AAC_OPTION_IGNORE_RESET)))) { | ||
1311 | printk(KERN_INFO "%s%d: Reset Adapter Ignored\n", | 1312 | printk(KERN_INFO "%s%d: Reset Adapter Ignored\n", |
1312 | dev->name, dev->id); | 1313 | dev->name, dev->id); |
1313 | } | 1314 | } |