Merge branch 'net-dsa-vsc73xx-convert-to-phylink-and-do-some-cleanup'
authorJakub Kicinski <kuba@kernel.org>
Mon, 22 Apr 2024 21:20:15 +0000 (14:20 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 22 Apr 2024 21:21:32 +0000 (14:21 -0700)
commitb240fc56b8fd5d383bd00e59ddf67a4f66b86bb8
tree3892e41bc52cb28a06d3d8707db5bde6d3c36ddc
parentc51db4ac10d57c366f9a92121e3889bfc6c324cd
parent96944aafaaa64e6ead1d3d227a1493dd8196a827
Merge branch 'net-dsa-vsc73xx-convert-to-phylink-and-do-some-cleanup'

Pawel Dembicki says:

====================
net: dsa: vsc73xx: convert to PHYLINK and do some cleanup

This patch series is a result of splitting a larger patch series [0],
where some parts needed to be refactored.

The first patch switches from a poll loop to read_poll_timeout.

The second patch is a simple conversion to phylink because adjust_link
won't work anymore.

The third patch is preparation for future use. Using the
"phy_interface_mode_is_rgmii" macro allows for the proper recognition
of all RGMII modes.

Patches 4-5 involve some cleanup: The fourth patch introduces
a definition with the maximum number of ports to avoid using
magic numbers. The next one fills in documentation.

[0] https://patchwork.kernel.org/project/netdevbpf/list/?series=841034&state=%2A&archive=both
====================

Link: https://lore.kernel.org/r/20240417205048.3542839-1-paweldembicki@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>