diff mbox series

[RFC,net-next] net: phy: add constant for USXGMII bit 0

Message ID 20200719222111.19705-1-michael@walle.cc
State RFC
Delegated to: David Miller
Headers show
Series [RFC,net-next] net: phy: add constant for USXGMII bit 0 | expand

Commit Message

Michael Walle July 19, 2020, 10:21 p.m. UTC
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 mbox series

Patch

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 */