Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1673723

[PATCH net-next 2/4] net: phy: Support "internal" PHY interface

From Florian Fainelli <f.fainelli@gmail.com>
Newsgroups linux.kernel
Subject [PATCH net-next 2/4] net: phy: Support "internal" PHY interface
Date 2017-06-23 19:40 +0200
Message-ID <tVAIO-57u-39@gated-at.bofh.it> (permalink)
References <tVAIN-57u-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <f.fainelli@gmail.com>
---
 include/linux/phy.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/phy.h b/include/linux/phy.h
index 23d2e46dd322..1d8d70193782 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -64,6 +64,7 @@
 /* Interface Mode definitions */
 typedef enum {
 	PHY_INTERFACE_MODE_NA,
+	PHY_INTERFACE_MODE_INTERNAL,
 	PHY_INTERFACE_MODE_MII,
 	PHY_INTERFACE_MODE_GMII,
 	PHY_INTERFACE_MODE_SGMII,
@@ -114,6 +115,8 @@ static inline const char *phy_modes(phy_interface_t interface)
 	switch (interface) {
 	case PHY_INTERFACE_MODE_NA:
 		return "";
+	case PHY_INTERFACE_MODE_INTERNAL:
+		return "internal";
 	case PHY_INTERFACE_MODE_MII:
 		return "mii";
 	case PHY_INTERFACE_MODE_GMII:
-- 
2.9.3

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH net-next 0/4] net: phy: Support "internal" PHY interface Florian Fainelli <f.fainelli@gmail.com> - 2017-06-23 19:40 +0200
  [PATCH net-next 1/4] dt-bindings: Add "internal" as a valid 'phy-mode' property Florian Fainelli <f.fainelli@gmail.com> - 2017-06-23 19:40 +0200
  [PATCH net-next 4/4] net: dsa: bcm_sf2: Remove special handling of "internal" phy-mode Florian Fainelli <f.fainelli@gmail.com> - 2017-06-23 19:40 +0200
  [PATCH net-next 2/4] net: phy: Support "internal" PHY interface Florian Fainelli <f.fainelli@gmail.com> - 2017-06-23 19:40 +0200
  Re: [PATCH net-next 0/4] net: phy: Support "internal" PHY interface David Miller <davem@davemloft.net> - 2017-06-23 21:10 +0200

csiph-web