Skip to content

Commit 5266733

Browse files
Hariprasad Kelamdavem330
authored andcommitted
octeontx2-af: CN10KB: Add USGMII LMAC mode
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>
1 parent c639a70 commit 5266733

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

  • drivers/net/ethernet/marvell/octeontx2/af

drivers/net/ethernet/marvell/octeontx2/af/cgx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static const char *cgx_lmactype_string[LMAC_MODE_MAX] = {
5555
[LMAC_MODE_50G_R] = "50G_R",
5656
[LMAC_MODE_100G_R] = "100G_R",
5757
[LMAC_MODE_USXGMII] = "USXGMII",
58+
[LMAC_MODE_USGMII] = "USGMII",
5859
};
5960

6061
/* CGX PHY management internal APIs */

drivers/net/ethernet/marvell/octeontx2/af/cgx.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ enum LMAC_TYPE {
110110
LMAC_MODE_50G_R = 8,
111111
LMAC_MODE_100G_R = 9,
112112
LMAC_MODE_USXGMII = 10,
113+
LMAC_MODE_USGMII = 11,
113114
LMAC_MODE_MAX,
114115
};
115116

0 commit comments

Comments
 (0)