]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: sparx5: fix the maximum frame length register
authorDaniel Machon <daniel.machon@microchip.com>
Thu, 5 Dec 2024 13:54:28 +0000 (14:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Dec 2024 13:30:17 +0000 (13:30 +0000)
commitddd7ba006078a2bef5971b2dc5f8383d47f96207
treece2881e5e1ed11b3004dd7b162d0ce5189f78b4c
parente4d505fda6c81baf9b92a7f32f89912984654983
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: 946e7fd5053a ("net: sparx5: add port module support")
Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/sparx5/sparx5_port.c