octeontx2-af: CN10KB: Add USGMII LMAC mode
authorHariprasad Kelam <hkelam@marvell.com>
Fri, 25 Aug 2023 10:40:19 +0000 (16:10 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2023 09:05:55 +0000 (10:05 +0100)
Upon physical link change, firmware reports to the kernel about the
change along with the details like speed, lmac_type_id, etc.
Kernel derives lmac_type based on lmac_type_id received from firmware.

This patch extends current lmac list with new USGMII mode supported
by CN10KB RPM block.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
drivers/net/ethernet/marvell/octeontx2/af/cgx.h

index 988383e..9392ef9 100644 (file)
@@ -55,6 +55,7 @@ static const char *cgx_lmactype_string[LMAC_MODE_MAX] = {
        [LMAC_MODE_50G_R] = "50G_R",
        [LMAC_MODE_100G_R] = "100G_R",
        [LMAC_MODE_USXGMII] = "USXGMII",
+       [LMAC_MODE_USGMII] = "USGMII",
 };
 
 /* CGX PHY management internal APIs */
index 5741141..6f7d1de 100644 (file)
@@ -110,6 +110,7 @@ enum LMAC_TYPE {
        LMAC_MODE_50G_R         = 8,
        LMAC_MODE_100G_R        = 9,
        LMAC_MODE_USXGMII       = 10,
+       LMAC_MODE_USGMII        = 11,
        LMAC_MODE_MAX,
 };