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
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 1.0 KB |
Makefile | -rw-r--r-- | 426 bytes |
af_rxrpc.c | -rw-r--r-- | 20.4 KB |
ar-accept.c | -rw-r--r-- | 12.1 KB |
ar-ack.c | -rw-r--r-- | 32.5 KB |
ar-call.c | -rw-r--r-- | 21.2 KB |
ar-connection.c | -rw-r--r-- | 22.6 KB |
ar-connevent.c | -rw-r--r-- | 8.9 KB |
ar-error.c | -rw-r--r-- | 5.8 KB |
ar-input.c | -rw-r--r-- | 19.9 KB |
ar-internal.h | -rw-r--r-- | 28.2 KB |
ar-key.c | -rw-r--r-- | 8.0 KB |
ar-local.c | -rw-r--r-- | 7.5 KB |
ar-output.c | -rw-r--r-- | 17.9 KB |
ar-peer.c | -rw-r--r-- | 7.5 KB |
ar-proc.c | -rw-r--r-- | 5.1 KB |
ar-recvmsg.c | -rw-r--r-- | 10.7 KB |
ar-security.c | -rw-r--r-- | 5.5 KB |
ar-skbuff.c | -rw-r--r-- | 3.4 KB |
ar-transport.c | -rw-r--r-- | 7.1 KB |
rxkad.c | -rw-r--r-- | 27.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...