lkml.org 
[lkml]   [2020]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH RFC net-next] net: phy: add constant for USXGMII bit 0
Date
Add the last missing constant of the USXGMII UsxgmiiChannelInfo field.
Unfortunately, there is no meaningful name in the USXGMII Singleport
Copper Interface specification. The specification just describe that
it has to be set to 1. The corresponding SGMII macros has two
different defines, ADVERTISE_SGMII and LPA_SGMII, depending on the
direction. The USXGMII is symmetrical thus just call it
MDIO_USXGMII_ADVERTISE.

Signed-off-by: Michael Walle <michael@walle.cc>
---
This is flagged as RFC to prevent the autobuilder bots from picking up this
patch because it depends on the following series:
https://lore.kernel.org/netdev/20200719220336.6919-1-michael@walle.cc/

I'm sending this as a separate patch because Russell put his Reviewed-by:
tag on everything else but this.

include/uapi/linux/mdio.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/include/uapi/linux/mdio.h b/include/uapi/linux/mdio.h
index 3f302e2523b2..3107751d2b99 100644
--- a/include/uapi/linux/mdio.h
+++ b/include/uapi/linux/mdio.h
@@ -325,6 +325,7 @@ static inline __u16 mdio_phy_id_c45(int prtad, int devad)
}

/* UsxgmiiChannelInfo[15:0] for USXGMII in-band auto-negotiation.*/
+#define MDIO_USXGMII_ADVERTISE 0x0001 /* must always be set */
#define MDIO_USXGMII_EEE_CLK_STP 0x0080 /* EEE clock stop supported */
#define MDIO_USXGMII_EEE 0x0100 /* EEE supported */
#define MDIO_USXGMII_SPD_MASK 0x0e00 /* USXGMII speed mask */
--
2.20.1
\
 
 \ /
  Last update: 2020-07-20 00:22    [W:0.020 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site