aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/pending-5.15/730-net-phy-realtek-detect-early-version-of-RTL8221B.patch
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2023-06-27 09:57:53 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2023-07-08 15:48:28 +0200
commitf4e1f999617b0d968fcb9ff2e5a4e1171d8d5d9f (patch)
treea47c2d8f440873d0cbc235227949a0b6cbd8728b /target/linux/generic/pending-5.15/730-net-phy-realtek-detect-early-version-of-RTL8221B.patch
parentc49654f4f0c217959542a1093e052851a3909119 (diff)
downloadupstream-f4e1f999617b0d968fcb9ff2e5a4e1171d8d5d9f.tar.gz
upstream-f4e1f999617b0d968fcb9ff2e5a4e1171d8d5d9f.tar.bz2
upstream-f4e1f999617b0d968fcb9ff2e5a4e1171d8d5d9f.zip
kernel: net: phy: realtek: fix rtl822x_probe on unsupported devices
Calling rtl822x_probe() on phy devices which uses the rtl822x_read_mmd() and rtl822x_write_mmd() functions makes no sense and the probe ends with an EOPNOTSUPP error. Signed-off-by: Martin Schiller <ms@dev.tdt.de> (cherry picked from commit 5af7d47cd7fb936dc7d640e1ba63443152d0416a)
Diffstat (limited to 'target/linux/generic/pending-5.15/730-net-phy-realtek-detect-early-version-of-RTL8221B.patch')
-rw-r--r--target/linux/generic/pending-5.15/730-net-phy-realtek-detect-early-version-of-RTL8221B.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/pending-5.15/730-net-phy-realtek-detect-early-version-of-RTL8221B.patch b/target/linux/generic/pending-5.15/730-net-phy-realtek-detect-early-version-of-RTL8221B.patch
index 6d414bfbad..b1e7a35a55 100644
--- a/target/linux/generic/pending-5.15/730-net-phy-realtek-detect-early-version-of-RTL8221B.patch
+++ b/target/linux/generic/pending-5.15/730-net-phy-realtek-detect-early-version-of-RTL8221B.patch
@@ -52,7 +52,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
static int rtl822x_probe(struct phy_device *phydev)
{
struct device *dev = &phydev->mdio.dev;
-@@ -1084,7 +1116,7 @@ static struct phy_driver realtek_drvs[]
+@@ -1082,7 +1114,7 @@ static struct phy_driver realtek_drvs[]
.write_page = rtl821x_write_page,
.soft_reset = genphy_soft_reset,
}, {