]> git.ipfire.org Git - thirdparty/linux.git/commit
net: sparx5: use is_port_rgmii() throughout
authorDaniel Machon <daniel.machon@microchip.com>
Fri, 20 Dec 2024 13:48:42 +0000 (14:48 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Dec 2024 18:57:54 +0000 (10:57 -0800)
commit05bda8a1bdedd5dfc21522d732c3bf9413d70eb3
treead48ff701c680c4fb4a38b24759f63b7c8ba532c
parentdd2baee1084034b8666290cbcc02cb32fe5a8666
net: sparx5: use is_port_rgmii() throughout

Now that we can check if a given port is an RGMII port, use it in the
following cases:

 - To set RGMII PHY modes for RGMII port devices.

 - To avoid checking for a SerDes node in the devicetree, when the port
   is an RGMII port.

 - To bail out of sparx5_port_init() when the common configuration is
   done.

Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Tested-by: Robert Marko <robert.marko@sartura.hr>
Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://patch.msgid.link/20241220-sparx5-lan969x-switch-driver-4-v5-3-fa8ba5dff732@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/sparx5/sparx5_main.c
drivers/net/ethernet/microchip/sparx5/sparx5_port.c