mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
02026d0a6f
Deleted (upstreamed): bcm27xx/patches-5.10/950-0145-xhci-add-quirk-for-host-controllers-that-don-t-updat.patch [1] Manually rebased: bcm27xx/patches-5.10/950-0355-xhci-quirks-add-link-TRB-quirk-for-VL805.patch bcm53xx/patches-5.10/180-usb-xhci-add-support-for-performing-fake-doorbell.patch Note: although automatically rebaseable, the last patch has been edited to avoid conflicting bit definitions. [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=b6f32897af190d4716412e156ee0abcc16e4f1e5 Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
17 lines
578 B
Diff
17 lines
578 B
Diff
--- a/drivers/net/phy/at803x.c
|
|
+++ b/drivers/net/phy/at803x.c
|
|
@@ -830,6 +830,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);
|