projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: Enable rx of 1536 bytes ethernet frames on MT7621
[openwrt.git]
/
target
/
linux
/
ramips
/
files
/
drivers
/
net
/
ethernet
/
ralink
/
gsw_mt7620a.c
diff --git
a/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620a.c
b/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620a.c
index
8039704
..
325e243
100644
(file)
--- a/
target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620a.c
+++ b/
target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620a.c
@@
-602,12
+602,12
@@
static void gsw_hw_init_mt7621(struct mt7620_gsw *gsw, struct device_node *np)
udelay(10);
if ((rt_sysc_r32(SYSC_REG_CHIP_REV_ID) & 0xFFFF) == 0x0101) {
udelay(10);
if ((rt_sysc_r32(SYSC_REG_CHIP_REV_ID) & 0xFFFF) == 0x0101) {
- /* (GE1, Force 1000M/FD, FC ON) */
- gsw_w32(gsw, 0x2
0
05e30b, 0x100);
+ /* (GE1, Force 1000M/FD, FC ON
, MAX_RX_LENGTH 1536
) */
+ gsw_w32(gsw, 0x2
1
05e30b, 0x100);
mt7530_mdio_w32(gsw, 0x3600, 0x5e30b);
} else {
mt7530_mdio_w32(gsw, 0x3600, 0x5e30b);
} else {
- /* (GE1, Force 1000M/FD, FC ON) */
- gsw_w32(gsw, 0x2
0
05e33b, 0x100);
+ /* (GE1, Force 1000M/FD, FC ON
, MAX_RX_LENGTH 1536
) */
+ gsw_w32(gsw, 0x2
1
05e33b, 0x100);
mt7530_mdio_w32(gsw, 0x3600, 0x5e33b);
}
mt7530_mdio_w32(gsw, 0x3600, 0x5e33b);
}