net: vertexcom: mse102x: Fix RX error handling
authorStefan Wahren <wahrenst@gmx.net>
Wed, 30 Apr 2025 13:30:43 +0000 (15:30 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 May 2025 14:24:05 +0000 (07:24 -0700)
commitee512922ddd7d64afe2b28830a88f19063217649
tree9cbe542ab763e8355f11e6760b184ebef282ac33
parentd4dda902dac194e3231a1ed0f76c6c3b6340ba8a
net: vertexcom: mse102x: Fix RX error handling

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>
drivers/net/ethernet/vertexcom/mse102x.c