ata_timing: ensure t->cycle is always correct
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Mon, 23 Apr 2007 10:55:36 +0000 (11:55 +0100)
committerJeff Garzik <jeff@garzik.org>
Sat, 28 Apr 2007 18:51:33 +0000 (14:51 -0400)
commit4f701d1e9a796a3d6657e1129bee0566d7cda916
treeac2b13b4fc37bcc29ada2f46fde1e2cd2d734052
parentc1c4e8d55757f8aec5f95eb80860e340d717c217
ata_timing: ensure t->cycle is always correct

Russell King hit a case where quantisation errors accumulated such that
the cycle time was shorter than rather than equal to the active/recovery
time. The code already knows how to stretch times to fit the cycle time
but does not know about the reverse.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c