From 5c68c624f671eb1773a82485d398ac933c4d416a Mon Sep 17 00:00:00 2001 From: David Bauer Date: Mon, 14 Jun 2021 01:33:03 +0200 Subject: [PATCH] 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 --- target/linux/ramips/patches-5.4/991-at803x.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ramips/patches-5.4/991-at803x.patch b/target/linux/ramips/patches-5.4/991-at803x.patch index 6e178b80cee..4de31185479 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);