[PATCH] sata_sil24: SII3124 sata driver endian problem
From: "Rune Torgersen" <runet@innovsys.com> Fix an endian issue in the sil24 driver. Signed-off-by: Rune Torgersen <runet@innovsys.com> Acked-by: Jeff Garzik <jeff@garzik.org> Cc: Tejun Heo <htejun@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
829a1985e7
commit
67f672f61b
@ -454,7 +454,7 @@ static int sil24_softreset(struct ata_port *ap, int verbose,
|
||||
*/
|
||||
msleep(10);
|
||||
|
||||
prb->ctrl = PRB_CTRL_SRST;
|
||||
prb->ctrl = cpu_to_le16(PRB_CTRL_SRST);
|
||||
prb->fis[1] = 0; /* no PM yet */
|
||||
|
||||
writel((u32)paddr, port + PORT_CMD_ACTIVATE);
|
||||
@ -551,9 +551,9 @@ static void sil24_qc_prep(struct ata_queued_cmd *qc)
|
||||
|
||||
if (qc->tf.protocol != ATA_PROT_ATAPI_NODATA) {
|
||||
if (qc->tf.flags & ATA_TFLAG_WRITE)
|
||||
prb->ctrl = PRB_CTRL_PACKET_WRITE;
|
||||
prb->ctrl = cpu_to_le16(PRB_CTRL_PACKET_WRITE);
|
||||
else
|
||||
prb->ctrl = PRB_CTRL_PACKET_READ;
|
||||
prb->ctrl = cpu_to_le16(PRB_CTRL_PACKET_READ);
|
||||
} else
|
||||
prb->ctrl = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user