Revision ffab6cf44e9058fe75a33aa86386b22e616a8f6f authored by Sergei Shtylyov on 08 July 2008, 17:27:22 UTC, committed by Bartlomiej Zolnierkiewicz on 08 July 2008, 17:27:22 UTC
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>
1 parent a861beb
History
File Mode Size
Kconfig -rw-r--r-- 2.7 KB
Makefile -rw-r--r-- 422 bytes
addr.c -rw-r--r-- 3.8 KB
addr.h -rw-r--r-- 603 bytes
atm_misc.c -rw-r--r-- 2.6 KB
atm_sysfs.c -rw-r--r-- 3.9 KB
br2684.c -rw-r--r-- 20.7 KB
clip.c -rw-r--r-- 24.6 KB
common.c -rw-r--r-- 20.0 KB
common.h -rw-r--r-- 1.5 KB
ioctl.c -rw-r--r-- 3.7 KB
lec.c -rw-r--r-- 66.3 KB
lec.h -rw-r--r-- 5.1 KB
lec_arpc.h -rw-r--r-- 2.9 KB
mpc.c -rw-r--r-- 39.2 KB
mpc.h -rw-r--r-- 1.9 KB
mpoa_caches.c -rw-r--r-- 14.7 KB
mpoa_caches.h -rw-r--r-- 3.0 KB
mpoa_proc.c -rw-r--r-- 6.9 KB
pppoatm.c -rw-r--r-- 10.6 KB
proc.c -rw-r--r-- 11.6 KB
protocols.h -rw-r--r-- 379 bytes
pvc.c -rw-r--r-- 3.5 KB
raw.c -rw-r--r-- 1.8 KB
resources.c -rw-r--r-- 9.4 KB
resources.h -rw-r--r-- 984 bytes
signaling.c -rw-r--r-- 6.8 KB
signaling.h -rw-r--r-- 838 bytes
svc.c -rw-r--r-- 15.6 KB

back to top