octeontx2-af: RPM: Fix mismatch in lmac type
[ Upstream commit7ebbbb23ea] 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:3ad3f8f93c("octeontx2-af: cn10k: MAC internal loopback support") Signed-off-by: Hariprasad Kelam <hkelam@marvell.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0be9f9c52e
commit
c33db53e40
@@ -256,7 +256,7 @@ u8 rpm_get_lmac_type(void *rpmd, int lmac_id)
|
||||
int err;
|
||||
|
||||
req = FIELD_SET(CMDREG_ID, CGX_CMD_GET_LINK_STS, req);
|
||||
err = cgx_fwi_cmd_generic(req, &resp, rpm, 0);
|
||||
err = cgx_fwi_cmd_generic(req, &resp, rpm, lmac_id);
|
||||
if (!err)
|
||||
return FIELD_GET(RESP_LINKSTAT_LMAC_TYPE, resp);
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user