]> git.baikalelectronics.ru Git - kernel.git/commit
cy82c693: fix PIO timings calculations
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 18 Jan 2010 07:18:47 +0000 (07:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jan 2010 09:24:59 +0000 (01:24 -0800)
commit78bfa1781e8a60877e360d4a344c93ede4efbd5b
tree6617fc61a23f2071f1b7ca7d4ab39cc3cd19112c
parent5ebd6d682d934af751d69ef29218a61ac959a4eb
cy82c693: 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 using 16-bit timings when 8-bit ones should be used or not
accounting for the enhanced cycle time specified by the device.

Based on libata pata_cypress host driver.

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