]> git.baikalelectronics.ru Git - kernel.git/commit
alim15x3: fix PIO timings calculations
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 18 Jan 2010 07:17:37 +0000 (07:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jan 2010 09:24:56 +0000 (01:24 -0800)
commita2c1c28e52b9e6fad747c6712c5dfb72ffce2961
treea2c042b8768ee08d5f99cd711698a237c6ccdebb
parent0e69212b74d427434cfcf0181c0b1cac35123cf4
alim15x3: fix PIO timings calculations

Just use the standard ide_timing_compute() helper to calculate
PIO timings.  This fixes many issues with the open-coded version
like potential recovery timings underclocking or not accounting
for the enhanced cycle time specified by the device.

Based on libata pata_ali host driver.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/alim15x3.c