diff options
-rw-r--r-- | drivers/ata/libata-sff.c | 2 | ||||
-rw-r--r-- | drivers/ata/pata_scc.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 1190c6703bc4..6c289c7b1322 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -211,6 +211,8 @@ void ata_tf_read(struct ata_port *ap, struct ata_taskfile *tf) | |||
211 | tf->hob_lbal = ioread8(ioaddr->lbal_addr); | 211 | tf->hob_lbal = ioread8(ioaddr->lbal_addr); |
212 | tf->hob_lbam = ioread8(ioaddr->lbam_addr); | 212 | tf->hob_lbam = ioread8(ioaddr->lbam_addr); |
213 | tf->hob_lbah = ioread8(ioaddr->lbah_addr); | 213 | tf->hob_lbah = ioread8(ioaddr->lbah_addr); |
214 | iowrite8(tf->ctl, ioaddr->ctl_addr); | ||
215 | ap->last_ctl = tf->ctl; | ||
214 | } | 216 | } |
215 | } | 217 | } |
216 | 218 | ||
diff --git a/drivers/ata/pata_scc.c b/drivers/ata/pata_scc.c index c0ffbed3e75d..36cdbd2b0bd5 100644 --- a/drivers/ata/pata_scc.c +++ b/drivers/ata/pata_scc.c | |||
@@ -363,6 +363,8 @@ static void scc_tf_read (struct ata_port *ap, struct ata_taskfile *tf) | |||
363 | tf->hob_lbal = in_be32(ioaddr->lbal_addr); | 363 | tf->hob_lbal = in_be32(ioaddr->lbal_addr); |
364 | tf->hob_lbam = in_be32(ioaddr->lbam_addr); | 364 | tf->hob_lbam = in_be32(ioaddr->lbam_addr); |
365 | tf->hob_lbah = in_be32(ioaddr->lbah_addr); | 365 | tf->hob_lbah = in_be32(ioaddr->lbah_addr); |
366 | out_be32(ioaddr->ctl_addr, tf->ctl); | ||
367 | ap->last_ctl = tf->ctl; | ||
366 | } | 368 | } |
367 | } | 369 | } |
368 | 370 | ||