Skip to content

Commit 7ebbbb2

Browse files
Hariprasad KelamPaolo Abeni
authored andcommitted
octeontx2-af: RPM: Fix mismatch in lmac type
Due to a bug in the previous patch, there is a mismatch between the lmac type reported by the driver and the actual hardware configuration. Fixes: 3ad3f8f ("octeontx2-af: cn10k: MAC internal loopback support") Signed-off-by: Hariprasad Kelam <hkelam@marvell.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 407618d commit 7ebbbb2

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/marvell/octeontx2/af

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ u8 rpm_get_lmac_type(void *rpmd, int lmac_id)
467467
int err;
468468

469469
req = FIELD_SET(CMDREG_ID, CGX_CMD_GET_LINK_STS, req);
470-
err = cgx_fwi_cmd_generic(req, &resp, rpm, 0);
470+
err = cgx_fwi_cmd_generic(req, &resp, rpm, lmac_id);
471471
if (!err)
472472
return FIELD_GET(RESP_LINKSTAT_LMAC_TYPE, resp);
473473
return err;

0 commit comments

Comments
 (0)