Skip to content

Commit ddd7ba0

Browse files
Danielmachondavem330
authored andcommitted
net: sparx5: fix the maximum frame length register
On port initialization, we configure the maximum frame length accepted by the receive module associated with the port. This value is currently written to the MAX_LEN field of the DEV10G_MAC_ENA_CFG register, when in fact, it should be written to the DEV10G_MAC_MAXLEN_CFG register. Fix this. Fixes: 946e7fd ("net: sparx5: add port module support") Signed-off-by: Daniel Machon <daniel.machon@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e4d505f commit ddd7ba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/microchip/sparx5/sparx5_port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ int sparx5_port_init(struct sparx5 *sparx5,
11511151
spx5_inst_rmw(DEV10G_MAC_MAXLEN_CFG_MAX_LEN_SET(ETH_MAXLEN),
11521152
DEV10G_MAC_MAXLEN_CFG_MAX_LEN,
11531153
devinst,
1154-
DEV10G_MAC_ENA_CFG(0));
1154+
DEV10G_MAC_MAXLEN_CFG(0));
11551155

11561156
/* Handle Signal Detect in 10G PCS */
11571157
spx5_inst_wr(PCS10G_BR_PCS_SD_CFG_SD_POL_SET(sd_pol) |

0 commit comments

Comments
 (0)