projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mpc85xx: fix up kernel config and make the target boot on the MPC8568E-MDS-PB board
[openwrt.git]
/
target
/
linux
/
generic
/
files
/
drivers
/
net
/
phy
/
rtl8366s.c
diff --git
a/target/linux/generic/files/drivers/net/phy/rtl8366s.c
b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
index
66dc2db
..
f9a4c8c
100644
(file)
--- a/
target/linux/generic/files/drivers/net/phy/rtl8366s.c
+++ b/
target/linux/generic/files/drivers/net/phy/rtl8366s.c
@@
-25,6
+25,7
@@
#define RTL8366S_PHY_NO_MAX 4
#define RTL8366S_PHY_PAGE_MAX 7
#define RTL8366S_PHY_ADDR_MAX 31
#define RTL8366S_PHY_NO_MAX 4
#define RTL8366S_PHY_PAGE_MAX 7
#define RTL8366S_PHY_ADDR_MAX 31
+#define RTL8366S_PHY_WAN 4
/* Switch Global Configuration register */
#define RTL8366S_SGCR 0x0000
/* Switch Global Configuration register */
#define RTL8366S_SGCR 0x0000
@@
-1026,7
+1027,7
@@
static struct rtl8366_smi_ops rtl8366s_smi_ops = {
.enable_vlan4k = rtl8366s_enable_vlan4k,
};
.enable_vlan4k = rtl8366s_enable_vlan4k,
};
-static int __init rtl8366s_probe(struct platform_device *pdev)
+static int __
dev
init rtl8366s_probe(struct platform_device *pdev)
{
static int rtl8366_smi_version_printed;
struct rtl8366s_platform_data *pdata;
{
static int rtl8366_smi_version_printed;
struct rtl8366s_platform_data *pdata;
@@
-1090,6
+1091,10
@@
static int rtl8366s_phy_config_init(struct phy_device *phydev)
static int rtl8366s_phy_config_aneg(struct phy_device *phydev)
{
static int rtl8366s_phy_config_aneg(struct phy_device *phydev)
{
+ /* phy 4 might be connected to a second mac, allow aneg config */
+ if (phydev->addr == RTL8366S_PHY_WAN)
+ return genphy_config_aneg(phydev);
+
return 0;
}
return 0;
}
This page took
0.021551 seconds
and
4
git commands to generate.