aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message')
-rw-r--r--drivers/message/fusion/mptscsih.c2
-rw-r--r--drivers/message/i2o/i2o_scsi.c2
-rw-r--r--drivers/message/i2o/iop.c8
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c
index a1d4ee6671b..ce61a576976 100644
--- a/drivers/message/fusion/mptscsih.c
+++ b/drivers/message/fusion/mptscsih.c
@@ -827,7 +827,7 @@ mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *mr)
827 * DID_SOFT_ERROR is set. 827 * DID_SOFT_ERROR is set.
828 */ 828 */
829 if (ioc->bus_type == SPI) { 829 if (ioc->bus_type == SPI) {
830 if (pScsiReq->CDB[0] == READ_6 || 830 if ((pScsiReq->CDB[0] == READ_6 && ((pScsiReq->CDB[1] & 0x02) == 0)) ||
831 pScsiReq->CDB[0] == READ_10 || 831 pScsiReq->CDB[0] == READ_10 ||
832 pScsiReq->CDB[0] == READ_12 || 832 pScsiReq->CDB[0] == READ_12 ||
833 pScsiReq->CDB[0] == READ_16 || 833 pScsiReq->CDB[0] == READ_16 ||
diff --git a/drivers/message/i2o/i2o_scsi.c b/drivers/message/i2o/i2o_scsi.c
index 74fbe56321f..c8ed7b63fdf 100644
--- a/drivers/message/i2o/i2o_scsi.c
+++ b/drivers/message/i2o/i2o_scsi.c
@@ -59,7 +59,7 @@
59#include <asm/dma.h> 59#include <asm/dma.h>
60#include <asm/system.h> 60#include <asm/system.h>
61#include <asm/io.h> 61#include <asm/io.h>
62#include <asm/atomic.h> 62#include <linux/atomic.h>
63 63
64#include <scsi/scsi.h> 64#include <scsi/scsi.h>
65#include <scsi/scsi_host.h> 65#include <scsi/scsi_host.h>
diff --git a/drivers/message/i2o/iop.c b/drivers/message/i2o/iop.c
index 090d2a3a654..a8c08f332da 100644
--- a/drivers/message/i2o/iop.c
+++ b/drivers/message/i2o/iop.c
@@ -681,11 +681,11 @@ static int i2o_iop_systab_set(struct i2o_controller *c)
681 if (root && allocate_resource(root, res, sb->desired_mem_size, sb->desired_mem_size, sb->desired_mem_size, 1 << 20, /* Unspecified, so use 1Mb and play safe */ 681 if (root && allocate_resource(root, res, sb->desired_mem_size, sb->desired_mem_size, sb->desired_mem_size, 1 << 20, /* Unspecified, so use 1Mb and play safe */
682 NULL, NULL) >= 0) { 682 NULL, NULL) >= 0) {
683 c->mem_alloc = 1; 683 c->mem_alloc = 1;
684 sb->current_mem_size = 1 + res->end - res->start; 684 sb->current_mem_size = resource_size(res);
685 sb->current_mem_base = res->start; 685 sb->current_mem_base = res->start;
686 osm_info("%s: allocated %llu bytes of PCI memory at " 686 osm_info("%s: allocated %llu bytes of PCI memory at "
687 "0x%016llX.\n", c->name, 687 "0x%016llX.\n", c->name,
688 (unsigned long long)(1 + res->end - res->start), 688 (unsigned long long)resource_size(res),
689 (unsigned long long)res->start); 689 (unsigned long long)res->start);
690 } 690 }
691 } 691 }
@@ -703,11 +703,11 @@ static int i2o_iop_systab_set(struct i2o_controller *c)
703 if (root && allocate_resource(root, res, sb->desired_io_size, sb->desired_io_size, sb->desired_io_size, 1 << 20, /* Unspecified, so use 1Mb and play safe */ 703 if (root && allocate_resource(root, res, sb->desired_io_size, sb->desired_io_size, sb->desired_io_size, 1 << 20, /* Unspecified, so use 1Mb and play safe */
704 NULL, NULL) >= 0) { 704 NULL, NULL) >= 0) {
705 c->io_alloc = 1; 705 c->io_alloc = 1;
706 sb->current_io_size = 1 + res->end - res->start; 706 sb->current_io_size = resource_size(res);
707 sb->current_mem_base = res->start; 707 sb->current_mem_base = res->start;
708 osm_info("%s: allocated %llu bytes of PCI I/O at " 708 osm_info("%s: allocated %llu bytes of PCI I/O at "
709 "0x%016llX.\n", c->name, 709 "0x%016llX.\n", c->name,
710 (unsigned long long)(1 + res->end - res->start), 710 (unsigned long long)resource_size(res),
711 (unsigned long long)res->start); 711 (unsigned long long)res->start);
712 } 712 }
713 } 713 }