提交 67f672f6 编写于 作者: R Rune Torgersen 提交者: Linus Torvalds

[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: NRune Torgersen <runet@innovsys.com>
Acked-by: NJeff Garzik <jeff@garzik.org>
Cc: Tejun Heo <htejun@gmail.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 829a1985
...@@ -454,7 +454,7 @@ static int sil24_softreset(struct ata_port *ap, int verbose, ...@@ -454,7 +454,7 @@ static int sil24_softreset(struct ata_port *ap, int verbose,
*/ */
msleep(10); msleep(10);
prb->ctrl = PRB_CTRL_SRST; prb->ctrl = cpu_to_le16(PRB_CTRL_SRST);
prb->fis[1] = 0; /* no PM yet */ prb->fis[1] = 0; /* no PM yet */
writel((u32)paddr, port + PORT_CMD_ACTIVATE); writel((u32)paddr, port + PORT_CMD_ACTIVATE);
...@@ -551,9 +551,9 @@ static void sil24_qc_prep(struct ata_queued_cmd *qc) ...@@ -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.protocol != ATA_PROT_ATAPI_NODATA) {
if (qc->tf.flags & ATA_TFLAG_WRITE) if (qc->tf.flags & ATA_TFLAG_WRITE)
prb->ctrl = PRB_CTRL_PACKET_WRITE; prb->ctrl = cpu_to_le16(PRB_CTRL_PACKET_WRITE);
else else
prb->ctrl = PRB_CTRL_PACKET_READ; prb->ctrl = cpu_to_le16(PRB_CTRL_PACKET_READ);
} else } else
prb->ctrl = 0; prb->ctrl = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册