summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2021-06-14 01:33:03 +0200
committerDavid Bauer <mail@david-bauer.net>2021-06-14 01:36:30 +0200
commit5c68c624f671eb1773a82485d398ac933c4d416a (patch)
tree1bd87ba0eff5eb28c053e5b8dc419939aab4cb59
parentda86064611db657bce8c3c96b2e58eca8551c3d0 (diff)
downloadopenwrt-5c68c624f671eb1773a82485d398ac933c4d416a.tar.gz
openwrt-5c68c624f671eb1773a82485d398ac933c4d416a.tar.bz2
openwrt-5c68c624f671eb1773a82485d398ac933c4d416a.zip
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 <mail@david-bauer.net>
-rw-r--r--target/linux/ramips/patches-5.4/991-at803x.patch2
1 files changed, 1 insertions, 1 deletions
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 <opensource@vdorst.com>
{
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);