]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: vertexcom: mse102x: Fix RX error handling
authorStefan Wahren <wahrenst@gmx.net>
Wed, 30 Apr 2025 13:30:43 +0000 (15:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 May 2025 07:41:43 +0000 (09:41 +0200)
commit01b832214793b9dd7b2673249d3a78bf38f36d40
treed48cd8f2b063c37f90357ea7bf6a1470a13b92d7
parent7bdc90cf922e73254c76fe20e4b1f4a75de982fd
net: vertexcom: mse102x: Fix RX error handling

[ Upstream commit ee512922ddd7d64afe2b28830a88f19063217649 ]

In case the CMD_RTS got corrupted by interferences, the MSE102x
doesn't allow a retransmission of the command. Instead the Ethernet
frame must be shifted out of the SPI FIFO. Since the actual length is
unknown, assume the maximum possible value.

Fixes: 2f207cbf0dd4 ("net: vertexcom: Add MSE102x SPI support")
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250430133043.7722-5-wahrenst@gmx.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/vertexcom/mse102x.c