mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-18 23:38:26 +02:00
Treat vlynq external divisor just like automatic, fix comment about it, thanks sn9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12467 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
56b1ad321a
commit
ba934bf744
@ -367,8 +367,8 @@ static int __vlynq_enable_device(struct vlynq_device *dev)
|
|||||||
return result;
|
return result;
|
||||||
|
|
||||||
switch (dev->divisor) {
|
switch (dev->divisor) {
|
||||||
|
case vlynq_div_external:
|
||||||
case vlynq_div_auto:
|
case vlynq_div_auto:
|
||||||
/* Only try locally supplied clock, others cause problems */
|
|
||||||
vlynq_reg_write(dev->local->control, 0);
|
vlynq_reg_write(dev->local->control, 0);
|
||||||
vlynq_reg_write(dev->remote->control, 0);
|
vlynq_reg_write(dev->remote->control, 0);
|
||||||
if (vlynq_linked(dev)) {
|
if (vlynq_linked(dev)) {
|
||||||
@ -377,6 +377,8 @@ static int __vlynq_enable_device(struct vlynq_device *dev)
|
|||||||
dev->dev.bus_id);
|
dev->dev.bus_id);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Only try locally supplied clock, others cause problems */
|
||||||
for (i = dev->dev_id ? vlynq_ldiv2 : vlynq_ldiv8; dev->dev_id ?
|
for (i = dev->dev_id ? vlynq_ldiv2 : vlynq_ldiv8; dev->dev_id ?
|
||||||
i <= vlynq_ldiv8 : i >= vlynq_ldiv2;
|
i <= vlynq_ldiv8 : i >= vlynq_ldiv2;
|
||||||
dev->dev_id ? i++ : i--) {
|
dev->dev_id ? i++ : i--) {
|
||||||
|
Loading…
Reference in New Issue
Block a user