diff mbox series

[net-next,1/2] net: phy: add interface mode PHY_INTERFACE_MODE_USXGMII

Message ID aca070f6-f56b-1b1f-180a-ddf52af91ecb@gmail.com (mailing list archive)
State New, archived
Headers show
Series net: phy: add interface mode PHY_INTERFACE_MODE_USXGMII | expand

Commit Message

Heiner Kallweit May 22, 2019, 7:57 p.m. UTC
Add support for interface mode PHY_INTERFACE_MODE_USXGMII.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 include/linux/phy.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Florian Fainelli May 22, 2019, 8:06 p.m. UTC | #1
On 5/22/19 12:57 PM, Heiner Kallweit wrote:
> Add support for interface mode PHY_INTERFACE_MODE_USXGMII.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

If you update Documentation/devicetree/bindings/net/ethernet.txt, then
this is:

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Heiner Kallweit May 22, 2019, 8:20 p.m. UTC | #2
On 22.05.2019 22:06, Florian Fainelli wrote:
> On 5/22/19 12:57 PM, Heiner Kallweit wrote:
>> Add support for interface mode PHY_INTERFACE_MODE_USXGMII.
>>
>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> 
> If you update Documentation/devicetree/bindings/net/ethernet.txt, then
> this is:
> 
Indeed, that's missing. Thanks for the hint.

> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
>
diff mbox series

Patch

diff --git a/include/linux/phy.h b/include/linux/phy.h
index 073fb151b..7180b1d1e 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -103,6 +103,7 @@  typedef enum {
 	PHY_INTERFACE_MODE_XAUI,
 	/* 10GBASE-KR, XFI, SFI - single lane 10G Serdes */
 	PHY_INTERFACE_MODE_10GKR,
+	PHY_INTERFACE_MODE_USXGMII,
 	PHY_INTERFACE_MODE_MAX,
 } phy_interface_t;
 
@@ -178,6 +179,8 @@  static inline const char *phy_modes(phy_interface_t interface)
 		return "xaui";
 	case PHY_INTERFACE_MODE_10GKR:
 		return "10gbase-kr";
+	case PHY_INTERFACE_MODE_USXGMII:
+		return "usxgmii";
 	default:
 		return "unknown";
 	}