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:
df35ee6
)
ar71xx: make the rtl8306 switch attach to eth0 instead of eth1 on the wrt160nl, fixes...
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 8 Dec 2009 14:06:18 +0000
(14:06 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 8 Dec 2009 14:06:18 +0000
(14:06 +0000)
SVN-Revision: 18699
target/linux/ar71xx/base-files/etc/defconfig/wrt160nl/network
patch
|
blob
|
history
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
patch
|
blob
|
history
target/linux/generic-2.6/files/drivers/net/phy/rtl8306.c
patch
|
blob
|
history
diff --git
a/target/linux/ar71xx/base-files/etc/defconfig/wrt160nl/network
b/target/linux/ar71xx/base-files/etc/defconfig/wrt160nl/network
index 24fca72085cb9f0c02e80a3185c924f7f042d787..974119bd9b15c2a2d58e7d3cb5ea4acd742864bb 100644
(file)
--- a/
target/linux/ar71xx/base-files/etc/defconfig/wrt160nl/network
+++ b/
target/linux/ar71xx/base-files/etc/defconfig/wrt160nl/network
@@
-15,7
+15,7
@@
config interface wan
option ifname eth1
option proto dhcp
-config switch eth
1
+config switch eth
0
option reset 1
option enable_vlan 1
diff --git
a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
index 0a73be112c50d6613c5e31aa7e7220c79d440b36..9f5f6f1971ba54078cb7cdc8c7fce9634c16e8f9 100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
+++ b/
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
@@
-124,7
+124,7
@@
static void __init wrt160nl_setup(void)
ar71xx_add_device_mdio(0x0);
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
- ar71xx_eth0_data.phy_mask = 0x
f
;
+ ar71xx_eth0_data.phy_mask = 0x
01
;
ar71xx_eth0_data.speed = SPEED_100;
ar71xx_eth0_data.duplex = DUPLEX_FULL;
diff --git
a/target/linux/generic-2.6/files/drivers/net/phy/rtl8306.c
b/target/linux/generic-2.6/files/drivers/net/phy/rtl8306.c
index 259ff5006fb0e5bd158b41568324bb0e57d92ede..5c8e81f79dee6570bfd44c65914b6436235aa644 100644
(file)
--- a/
target/linux/generic-2.6/files/drivers/net/phy/rtl8306.c
+++ b/
target/linux/generic-2.6/files/drivers/net/phy/rtl8306.c
@@
-913,6
+913,9
@@
rtl8306_fixup(struct phy_device *pdev)
struct rtl_priv priv;
u16 chipid;
+ if (pdev->addr != 0)
+ return 0;
+
priv.page = -1;
priv.bus = pdev->bus;
chipid = rtl_get(&priv.dev, RTL_REG_CHIPID);