projects
/
librecmc
/
librecmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
add7557
)
vlynq: small fixes
author
Matteo Croce
<rootkit85@yahoo.it>
Wed, 2 Apr 2008 14:50:19 +0000
(14:50 +0000)
committer
Matteo Croce
<rootkit85@yahoo.it>
Wed, 2 Apr 2008 14:50:19 +0000
(14:50 +0000)
SVN-Revision: 10711
target/linux/ar7/files/drivers/vlynq/vlynq.c
patch
|
blob
|
history
diff --git
a/target/linux/ar7/files/drivers/vlynq/vlynq.c
b/target/linux/ar7/files/drivers/vlynq/vlynq.c
index 61e15eced86efc5d6f52bad2a5c97c825510c79a..879ed0d14c71d09da2a4276b39e2cc42c1715f7a 100644
(file)
--- a/
target/linux/ar7/files/drivers/vlynq/vlynq.c
+++ b/
target/linux/ar7/files/drivers/vlynq/vlynq.c
@@
-380,6
+380,7
@@
static int __vlynq_enable_device(struct vlynq_device *dev)
switch (dev->divisor) {
case vlynq_div_auto:
/* Only try locally supplied clock, others cause problems */
switch (dev->divisor) {
case vlynq_div_auto:
/* Only try locally supplied clock, others cause problems */
+ vlynq_reg_write(dev->local->control, 0);
vlynq_reg_write(dev->remote->control, 0);
for (i = vlynq_ldiv2; i <= vlynq_ldiv8; i++) {
vlynq_reg_write(dev->local->control,
vlynq_reg_write(dev->remote->control, 0);
for (i = vlynq_ldiv2; i <= vlynq_ldiv8; i++) {
vlynq_reg_write(dev->local->control,
@@
-395,11
+396,11
@@
static int __vlynq_enable_device(struct vlynq_device *dev)
}
case vlynq_ldiv1: case vlynq_ldiv2: case vlynq_ldiv3: case vlynq_ldiv4:
case vlynq_ldiv5: case vlynq_ldiv6: case vlynq_ldiv7: case vlynq_ldiv8:
}
case vlynq_ldiv1: case vlynq_ldiv2: case vlynq_ldiv3: case vlynq_ldiv4:
case vlynq_ldiv5: case vlynq_ldiv6: case vlynq_ldiv7: case vlynq_ldiv8:
- vlynq_reg_write(dev->remote->control, 0);
vlynq_reg_write(dev->local->control,
VLYNQ_CTRL_CLOCK_INT |
VLYNQ_CTRL_CLOCK_DIV(dev->divisor -
vlynq_ldiv1));
vlynq_reg_write(dev->local->control,
VLYNQ_CTRL_CLOCK_INT |
VLYNQ_CTRL_CLOCK_DIV(dev->divisor -
vlynq_ldiv1));
+ vlynq_reg_write(dev->remote->control, 0);
if (vlynq_linked(dev)) {
printk(KERN_DEBUG
"%s: using local clock divisor %d\n",
if (vlynq_linked(dev)) {
printk(KERN_DEBUG
"%s: using local clock divisor %d\n",