alistair23-linux/drivers/ide/arm
Sergei Shtylyov ffab6cf44e palm_bk3710: fix IDECLK period calculation
The driver uses completely bogus rounding formula for calculating period from
the IDECLK frequency which gives one-off period values (e.g. 11 ns with 100 MHz
IDECLK) which in turn can lead to overclocked IDE transfer timings.  Actually,
rounding is just wrong in this case, so use a mere division for a safe result.

While at it, also:

- give 'ide_palm_clk' variable a more suitable name;

- get rid of the useless 'ideclkp' variable;

- drop the LISP stype 'p' postfix from the 'clkp' variable's name. :-)

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: mcherkashin@ru.mvista.com
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-07-08 19:27:22 +02:00
..
bast-ide.c Revert "BAST: Remove old IDE driver" 2008-06-30 20:13:31 +02:00
icside.c ide: add IDE_HFLAG_MMIO host flag (take 2) 2008-04-28 23:44:37 +02:00
ide_arm.c ide: fix host drivers missing hwif->chipset initialization 2008-06-10 20:56:37 +02:00
Makefile Revert "BAST: Remove old IDE driver" 2008-06-30 20:13:31 +02:00
palm_bk3710.c palm_bk3710: fix IDECLK period calculation 2008-07-08 19:27:22 +02:00
rapide.c ide: add IDE_HFLAG_MMIO host flag (take 2) 2008-04-28 23:44:37 +02:00