]> git.baikalelectronics.ru Git - kernel.git/commit
cmd64x: fix PIO and MWDMA timings calculations
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 18 Jan 2010 07:18:26 +0000 (07:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jan 2010 09:24:58 +0000 (01:24 -0800)
commit4c27410797b24e5a6d49eb8f8190ed246534673b
treeb72202c5b424f14b312d5b5fd8315527e2de4610
parent2ad06e3eab8180fb36516dfad9b39b3adb8fcd7b
cmd64x: fix PIO and MWDMA timings calculations

Just use the standard ide_timing_compute() helper to calculate
PIO and MWDMA timings.  This fixes some issues with the open-coded
version like allowing faster MWDMA timings than the ones required
by the current PIO mode or not accounting for the enhanced MWDMA
cycle time specified by the device.

Based on libata pata_cmd64x host driver.

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