diff options
author | Brett Russ <russb@emc.com> | 2005-10-20 08:39:43 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-20 16:04:22 -0400 |
commit | 7e6c1208598004a80b1c1fca4953eb9f2a6aa8bc (patch) | |
tree | 098dec14f0b7c30193aace90974e1f17a68cd4b8 /drivers | |
parent | 323cb3ce6eea9d4e72a81a9ffaac4c4e5b800810 (diff) |
[PATCH] libata: Marvell endian fix
Jeff found an endian bug in the Marvell driver (thanks!). Here's the
fix for it.
Signed-off-by: Brett Russ <russb@emc.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/sata_mv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c index d457f5673476..9b6213928f7a 100644 --- a/drivers/scsi/sata_mv.c +++ b/drivers/scsi/sata_mv.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include <asm/io.h> | 35 | #include <asm/io.h> |
36 | 36 | ||
37 | #define DRV_NAME "sata_mv" | 37 | #define DRV_NAME "sata_mv" |
38 | #define DRV_VERSION "0.24" | 38 | #define DRV_VERSION "0.25" |
39 | 39 | ||
40 | enum { | 40 | enum { |
41 | /* BAR's are enumerated in terms of pci_resource_start() terms */ | 41 | /* BAR's are enumerated in terms of pci_resource_start() terms */ |
@@ -800,7 +800,8 @@ static void mv_fill_sg(struct ata_queued_cmd *qc) | |||
800 | pp->sg_tbl[i].flags_size = cpu_to_le32(sg_len); | 800 | pp->sg_tbl[i].flags_size = cpu_to_le32(sg_len); |
801 | } | 801 | } |
802 | if (0 < qc->n_elem) { | 802 | if (0 < qc->n_elem) { |
803 | pp->sg_tbl[qc->n_elem - 1].flags_size |= EPRD_FLAG_END_OF_TBL; | 803 | pp->sg_tbl[qc->n_elem - 1].flags_size |= |
804 | cpu_to_le32(EPRD_FLAG_END_OF_TBL); | ||
804 | } | 805 | } |
805 | } | 806 | } |
806 | 807 | ||