realtek: rtl83xx-phy: abstract and document PHY features
authorDaniel Golle <daniel@makrotopia.org>
Thu, 10 Feb 2022 20:17:58 +0000 (20:17 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 17 Feb 2022 15:37:03 +0000 (15:37 +0000)
commiteef7f17652001ce7c087b8576c0021494a0e7e7e
treeadc5535f213b48d291652959e011fc67979e6fbf
parent68c66b0fa3a101841acf163baa2db6f884a4a24d
realtek: rtl83xx-phy: abstract and document PHY features

Replace magic values with more self-descriptive code now that I start
to understand more about the design of the PHY (and MDIO controller).

Remove one line before reading RTL8214FC internal PHY id which turned
out to be a no-op and can hence safely be removed (confirmed by
INAGAKI Hiroshi[1])

[1]: https://github.com/openwrt/openwrt/commit/df8e6be59a1fbce3f8c6878fe7440a129b1245d6#r66890713

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/realtek/files-5.10/drivers/net/phy/rtl83xx-phy.c