phy: add sgmii and 10gkr modes to the phy_mode enum
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Wed, 30 Aug 2017 08:29:12 +0000 (10:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Aug 2017 22:17:45 +0000 (15:17 -0700)
This patch adds more generic PHY modes to the phy_mode enum, to
allow configuring generic PHYs to the SGMII and/or the 10GKR mode
by using the set_mode callback.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/phy/phy.h

index 78bb0d7f6b11ac0a78e02eb35d12c9cbc0545a53..e694d4008c4a9121cbf1c8b6b0731f890b3570b3 100644 (file)
@@ -27,6 +27,8 @@ enum phy_mode {
        PHY_MODE_USB_HOST,
        PHY_MODE_USB_DEVICE,
        PHY_MODE_USB_OTG,
+       PHY_MODE_SGMII,
+       PHY_MODE_10GKR,
 };
 
 /**