projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b8bca7
)
ATA: pata_octeon_cf: Use I/O clock rate for timing calculations.
author
David Daney
<
[email protected]
>
Thu, 7 Oct 2010 23:03:51 +0000
(16:03 -0700)
committer
Ralf Baechle
<
[email protected]
>
Fri, 29 Oct 2010 18:08:41 +0000
(19:08 +0100)
The creation of the I/O clock domain requires some adjustments. Since the
CF bus timing logic is clocked by the I/O clock, use its rate for delay
calculations.
Signed-off-by: David Daney <
[email protected]
>
Cc: Jeff Garzik <
[email protected]
>
Cc:
[email protected]
Patchwork: http://patchwork.linux-mips.org/patch/1660/
Acked-by: Jeff Garzik <
[email protected]
>
Signed-off-by: Ralf Baechle <
[email protected]
>
drivers/ata/pata_octeon_cf.c
patch
|
blob
|
history
diff --git
a/drivers/ata/pata_octeon_cf.c
b/drivers/ata/pata_octeon_cf.c
index 06ddd91ffeda276f0ec5d0c0cfd2696f308a0cc1..74b829817891de507178d868807ed981f8027635 100644
(file)
--- a/
drivers/ata/pata_octeon_cf.c
+++ b/
drivers/ata/pata_octeon_cf.c
@@
-60,7
+60,7
@@
static unsigned int ns_to_tim_reg(unsigned int tim_mult, unsigned int nsecs)
* Compute # of eclock periods to get desired duration in
* nanoseconds.
*/
- val = DIV_ROUND_UP(nsecs * (octeon_get_clock_rate() / 1000000),
+ val = DIV_ROUND_UP(nsecs * (octeon_get_
io_
clock_rate() / 1000000),
1000 * tim_mult);
return val;