]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:07:20 +0000 (18:07 +0100)
commit9f82e8ace7d5f3f890d499f09fe2f3452fb85e35
tree66c9c3b0b30fe1bebb7db3e9e8e973729aef3e37
parent6cedf276444d487f1cb8c65214064f76eca1f3f0
net: sparx5: fix the maximum frame length register

[ Upstream commit ddd7ba006078a2bef5971b2dc5f8383d47f96207 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/microchip/sparx5/sparx5_port.c