pata_at91: SMC settings calculation bugfixes, support for t6z and IORDY
authorIgor Plyatov <plyatov@gmail.com>
Thu, 12 May 2011 18:15:51 +0000 (22:15 +0400)
committerJeff Garzik <jgarzik@pobox.com>
Sat, 14 May 2011 19:00:13 +0000 (15:00 -0400)
commit0144261fa677e9490eb112231de30c95af1679d2
treea73a2ff3e3c6a2d00ff634b893de6b8448215010
parentaf649a1b56032a84b75825a94204a8f8f0120698
pata_at91: SMC settings calculation bugfixes, support for t6z and IORDY

* New code correctly calculates SMC registers values, adjusts calculated
  to admissible ranges, enlarges cycles when required and converts values
  into SMC's format.
* Support for TDF cycles (ATA t6z) and IORDY line added.
* Eliminate need in the initial_timing structure.
* Code cleanup.

Signed-off-by: Igor Plyatov <plyatov@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/ata/pata_at91.c