projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[adm5120] fix switch driver, force all packets from all the ports are low priority
[openwrt.git]
/
target
/
linux
/
adm5120-2.6
/
files
/
drivers
/
net
/
adm5120sw.c
diff --git
a/target/linux/adm5120-2.6/files/drivers/net/adm5120sw.c
b/target/linux/adm5120-2.6/files/drivers/net/adm5120sw.c
index
744a2da
..
2714577
100644
(file)
--- a/
target/linux/adm5120-2.6/files/drivers/net/adm5120sw.c
+++ b/
target/linux/adm5120-2.6/files/drivers/net/adm5120sw.c
@@
-537,6
+537,9
@@
static int __init adm5120_sw_init(void)
adm5120_set_reg(ADM5120_PHY_CNTL3, adm5120_get_reg(ADM5120_PHY_CNTL3) |
ADM5120_PHY_NTH);
adm5120_set_reg(ADM5120_PHY_CNTL3, adm5120_get_reg(ADM5120_PHY_CNTL3) |
ADM5120_PHY_NTH);
+ /* Force all the packets from all ports are low priority */
+ adm5120_set_reg(ADM5120_PRI_CNTL, 0);
+
adm5120_set_reg(ADM5120_INT_MASK, ADM5120_INTMASKALL);
adm5120_set_reg(ADM5120_INT_ST, ADM5120_INTMASKALL);
adm5120_set_reg(ADM5120_INT_MASK, ADM5120_INTMASKALL);
adm5120_set_reg(ADM5120_INT_ST, ADM5120_INTMASKALL);
This page took
0.031633 seconds
and
4
git commands to generate.