Skip to content

Commit f027fd5

Browse files
sgoutham-marvelldavem330
authored andcommitted
octeontx2-af: Don't treat lack of CGX interfaces as error
Don't treat lack of CGX LMACs on the system as a error. Instead ignore it so that LBK VFs are created and can be used. Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: Hariprasad Kelam <hkelam@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5266733 commit f027fd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ int rvu_cgx_init(struct rvu *rvu)
345345
rvu->cgx_cnt_max = cgx_get_cgxcnt_max();
346346
if (!rvu->cgx_cnt_max) {
347347
dev_info(rvu->dev, "No CGX devices found!\n");
348-
return -ENODEV;
348+
return 0;
349349
}
350350

351351
rvu->cgx_idmap = devm_kzalloc(rvu->dev, rvu->cgx_cnt_max *

0 commit comments

Comments
 (0)