diff options
-rw-r--r-- | drivers/ata/pata_legacy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_legacy.c b/drivers/ata/pata_legacy.c index da2546b1dda2..5afe3567ebcc 100644 --- a/drivers/ata/pata_legacy.c +++ b/drivers/ata/pata_legacy.c | |||
@@ -672,7 +672,7 @@ static void qdi6580dp_set_piomode(struct ata_port *ap, struct ata_device *adev) | |||
672 | outb(timing, ld_qdi->timing + 2 * ap->port_no); | 672 | outb(timing, ld_qdi->timing + 2 * ap->port_no); |
673 | /* Clear the FIFO */ | 673 | /* Clear the FIFO */ |
674 | if (adev->class != ATA_DEV_ATA) | 674 | if (adev->class != ATA_DEV_ATA) |
675 | outb(0x5F, ld_qdi->timing + 3); | 675 | outb(0x5F, (ld_qdi->timing & 0xFFF0) + 3); |
676 | } | 676 | } |
677 | 677 | ||
678 | /** | 678 | /** |
@@ -707,7 +707,7 @@ static void qdi6580_set_piomode(struct ata_port *ap, struct ata_device *adev) | |||
707 | outb(timing, ld_qdi->timing + 2 * adev->devno); | 707 | outb(timing, ld_qdi->timing + 2 * adev->devno); |
708 | /* Clear the FIFO */ | 708 | /* Clear the FIFO */ |
709 | if (adev->class != ATA_DEV_ATA) | 709 | if (adev->class != ATA_DEV_ATA) |
710 | outb(0x5F, ld_qdi->timing + 3); | 710 | outb(0x5F, (ld_qdi->timing & 0xFFF0) + 3); |
711 | } | 711 | } |
712 | 712 | ||
713 | /** | 713 | /** |