diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/pata_legacy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/pata_legacy.c b/drivers/ata/pata_legacy.c index 35aca7d1a3eb..4fe9d2138d48 100644 --- a/drivers/ata/pata_legacy.c +++ b/drivers/ata/pata_legacy.c | |||
@@ -401,8 +401,7 @@ static void ht6560b_set_piomode(struct ata_port *ap, struct ata_device *adev) | |||
401 | ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000); | 401 | ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000); |
402 | 402 | ||
403 | active = clamp_val(t.active, 2, 15); | 403 | active = clamp_val(t.active, 2, 15); |
404 | recover = clamp_val(t.recover, 2, 16); | 404 | recover = clamp_val(t.recover, 2, 16) & 0x0F; |
405 | recover &= 0x15; | ||
406 | 405 | ||
407 | inb(0x3E6); | 406 | inb(0x3E6); |
408 | inb(0x3E6); | 407 | inb(0x3E6); |