From: David Bauer Date: Sun, 13 Jun 2021 23:33:03 +0000 (+0200) Subject: ramips: refresh at803x patch X-Git-Tag: mikrotik~1864 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5c68c624f671eb1773a82485d398ac933c4d416a;p=openwrt%2Fstaging%2Fchunkeey.git ramips: refresh at803x patch This patch failed to apply, breaking builds for the ramips target. Fixes commit c44cefceb3ad ("generic: kernel 5.4: fix probe error for AR803x PHYs") Signed-off-by: David Bauer --- diff --git a/target/linux/ramips/patches-5.4/991-at803x.patch b/target/linux/ramips/patches-5.4/991-at803x.patch index 6e178b80ce..4de3118547 100644 --- a/target/linux/ramips/patches-5.4/991-at803x.patch +++ b/target/linux/ramips/patches-5.4/991-at803x.patch @@ -105,7 +105,7 @@ Signed-off-by: René van Dorst { struct device *dev = &phydev->mdio.dev; struct at803x_priv *priv; - int ret; + int ret = 0; + if (at803x_mode(phydev) == AT803X_MODE_FIBER) { + ret = phy_sfp_probe(phydev, &at803x_sfp_ops);