Re: [PATCH net-next v3 09/10] net: freescale: ucc_geth: Introduce a helper to check Reduced modes
From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-12-04 02:15:58
Also in:
lkml, netdev
From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-12-04 02:15:58
Also in:
lkml, netdev
+static bool phy_interface_mode_is_reduced(phy_interface_t interface)
+{
+ return phy_interface_mode_is_rgmii(interface) ||
+ interface == PHY_INTERFACE_MODE_RMII ||
+ interface == PHY_INTERFACE_MODE_RTBI;
+}I wounder if this is useful anywhere else? Did you take a look around other MAC drivers? Maybe this should be in phy.h? Andrew