Skip to content

Commit

Permalink
[PATCH] libata: Marvell endian fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brett Russ authored and Jeff Garzik committed Oct 20, 2005
1 parent 323cb3c commit 7e6c120
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/scsi/sata_mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 7e6c120

Please sign in to comment.