diff options
Diffstat (limited to 'drivers/block/sx8.c')
-rw-r--r-- | drivers/block/sx8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index 60e85bb6f790..087c94c8b2da 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c | |||
@@ -903,10 +903,10 @@ queue_one_request: | |||
903 | msg->sg_count = n_elem; | 903 | msg->sg_count = n_elem; |
904 | msg->sg_type = SGT_32BIT; | 904 | msg->sg_type = SGT_32BIT; |
905 | msg->handle = cpu_to_le32(TAG_ENCODE(crq->tag)); | 905 | msg->handle = cpu_to_le32(TAG_ENCODE(crq->tag)); |
906 | msg->lba = cpu_to_le32(rq->sector & 0xffffffff); | 906 | msg->lba = cpu_to_le32(blk_rq_pos(rq) & 0xffffffff); |
907 | tmp = (rq->sector >> 16) >> 16; | 907 | tmp = (blk_rq_pos(rq) >> 16) >> 16; |
908 | msg->lba_high = cpu_to_le16( (u16) tmp ); | 908 | msg->lba_high = cpu_to_le16( (u16) tmp ); |
909 | msg->lba_count = cpu_to_le16(rq->nr_sectors); | 909 | msg->lba_count = cpu_to_le16(blk_rq_sectors(rq)); |
910 | 910 | ||
911 | msg_size = sizeof(struct carm_msg_rw) - sizeof(msg->sg); | 911 | msg_size = sizeof(struct carm_msg_rw) - sizeof(msg->sg); |
912 | for (i = 0; i < n_elem; i++) { | 912 | for (i = 0; i < n_elem; i++) { |