kernel: net: phy: realtek: fix rtl822x_probe on unsupported devices
authorMartin Schiller <ms@dev.tdt.de>
Tue, 27 Jun 2023 07:57:53 +0000 (09:57 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 8 Jul 2023 13:48:28 +0000 (15:48 +0200)
commitf4e1f999617b0d968fcb9ff2e5a4e1171d8d5d9f
treea47c2d8f440873d0cbc235227949a0b6cbd8728b
parentc49654f4f0c217959542a1093e052851a3909119
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)
target/linux/generic/pending-5.15/729-net-phy-realtek-introduce-rtl822x_probe.patch
target/linux/generic/pending-5.15/730-net-phy-realtek-detect-early-version-of-RTL8221B.patch