Skip to content

Commit 735d8a1

Browse files
ffainellidavem330
authored andcommitted
net: phy: Support "internal" PHY interface
Now that the Device Tree binding has been updated, update the PHY library phy_interface_t and phy_modes to support the "internal" PHY interface type. Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 29b65f5 commit 735d8a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/linux/phy.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
/* Interface Mode definitions */
6565
typedef enum {
6666
PHY_INTERFACE_MODE_NA,
67+
PHY_INTERFACE_MODE_INTERNAL,
6768
PHY_INTERFACE_MODE_MII,
6869
PHY_INTERFACE_MODE_GMII,
6970
PHY_INTERFACE_MODE_SGMII,
@@ -114,6 +115,8 @@ static inline const char *phy_modes(phy_interface_t interface)
114115
switch (interface) {
115116
case PHY_INTERFACE_MODE_NA:
116117
return "";
118+
case PHY_INTERFACE_MODE_INTERNAL:
119+
return "internal";
117120
case PHY_INTERFACE_MODE_MII:
118121
return "mii";
119122
case PHY_INTERFACE_MODE_GMII:

0 commit comments

Comments
 (0)