All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC net-next] net: phy: add constant for USXGMII bit 0
@ 2020-07-19 22:21 Michael Walle
  0 siblings, 0 replies; only message in thread
From: Michael Walle @ 2020-07-19 22:21 UTC (permalink / raw)
  To: netdev, linux-kernel
  Cc: David S . Miller, Heiner Kallweit, Florian Fainelli, Andrew Lunn,
	Vladimir Oltean, Russell King - ARM Linux admin, Ioana Ciornei,
	Michael Walle

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-19 22:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-19 22:21 [PATCH RFC net-next] net: phy: add constant for USXGMII bit 0 Michael Walle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.