[PATCH] libata: Marvell endian fix
authorBrett Russ <russb@emc.com>
Thu, 20 Oct 2005 12:39:43 +0000 (08:39 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 20 Oct 2005 20:04:22 +0000 (16:04 -0400)
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>
drivers/scsi/sata_mv.c

index d457f5673476890732aa3f7d39adadf832dcc6f0..9b6213928f7aaa825527cafb0b6478272ed7ecd8 100644 (file)
@@ -35,7 +35,7 @@
 #include <asm/io.h>
 
 #define DRV_NAME       "sata_mv"
-#define DRV_VERSION    "0.24"
+#define DRV_VERSION    "0.25"
 
 enum {
        /* 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)
                pp->sg_tbl[i].flags_size = cpu_to_le32(sg_len);
        }
        if (0 < qc->n_elem) {
-               pp->sg_tbl[qc->n_elem - 1].flags_size |= EPRD_FLAG_END_OF_TBL;
+               pp->sg_tbl[qc->n_elem - 1].flags_size |= 
+                       cpu_to_le32(EPRD_FLAG_END_OF_TBL);
        }
 }