dnsmasq: move feature detection inside a shell func
[openwrt/openwrt.git] / target / linux / cns3xxx / patches-4.19 / 200-broadcom_phy_reinit.patch
1 --- a/drivers/net/phy/broadcom.c
2 +++ b/drivers/net/phy/broadcom.c
3 @@ -429,7 +429,11 @@ static int bcm5481_config_aneg(struct ph
4 ret = genphy_config_aneg(phydev);
5
6 /* Then we can set up the delay. */
7 - bcm5481x_config(phydev);
8 + //bcm5481x_config(phydev);
9 +
10 + phy_write(phydev, 0x18, 0xf1e7);
11 + phy_write(phydev, 0x1c, 0x8e00);
12 + phy_write(phydev, 0x1c, 0xa41f);
13
14 if (of_property_read_bool(np, "enet-phy-lane-swap")) {
15 /* Lane Swap - Undocumented register...magic! */