linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.14-rc4] libata: Marvell endian fix
@ 2005-10-20 12:39 Brett Russ
  2005-10-20 20:04 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Brett Russ @ 2005-10-20 12:39 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-ide

Jeff found an endian bug in the Marvell driver (thanks!).  Here's the
fix for it.

Signed-off-by: Brett Russ <russb@emc.com>


Index: linux-2.6.14-rc4/drivers/scsi/sata_mv.c
===================================================================
--- linux-2.6.14-rc4.orig/drivers/scsi/sata_mv.c
+++ linux-2.6.14-rc4/drivers/scsi/sata_mv.c
@@ -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 */
@@ -799,7 +799,8 @@ static void mv_fill_sg(struct ata_queued
 		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);
 	}
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-20 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-20 12:39 [PATCH 2.6.14-rc4] libata: Marvell endian fix Brett Russ
2005-10-20 20:04 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).