d6b785d477
This adds Kernel 5.10 support for the generic, nand and tiny subtargets. The following patch is not contained, as it needs to be reworked: platform/920-mikrotik-rb4xx.patch Tested-on: - Siemens WS-AP3610 - Enterasys WS-AP3710 - Aerohive HiveAP 121 - TP-Link TL-WA901 v2 - TP-Link TL-WR741 v1 Signed-off-by: David Bauer <mail@david-bauer.net>
17 lines
578 B
Diff
17 lines
578 B
Diff
--- a/drivers/net/phy/at803x.c
|
|
+++ b/drivers/net/phy/at803x.c
|
|
@@ -383,6 +383,13 @@ static int at803x_aneg_done(struct phy_d
|
|
if (!(phy_read(phydev, AT803X_PSSR) & AT803X_PSSR_MR_AN_COMPLETE)) {
|
|
phydev_warn(phydev, "803x_aneg_done: SGMII link is not ok\n");
|
|
aneg_done = 0;
|
|
+#ifdef CONFIG_OF_MDIO
|
|
+ if (phydev->mdio.dev.of_node &&
|
|
+ of_property_read_bool(phydev->mdio.dev.of_node,
|
|
+ "at803x-override-sgmii-link-check")) {
|
|
+ aneg_done = 1;
|
|
+ }
|
|
+#endif
|
|
}
|
|
/* switch back to copper page */
|
|
phy_write(phydev, AT803X_REG_CHIP_CONFIG, ccr | AT803X_BT_BX_REG_SEL);
|