net: vertexcom: mse102x: Return code for mse102x_rx_pkt_spi
authorStefan Wahren <wahrenst@gmx.net>
Fri, 9 May 2025 12:04:34 +0000 (14:04 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 May 2025 01:46:44 +0000 (18:46 -0700)
commit4ecf56f4b66011b583644bf9a62188d05dfcd78c
tree9fb2c04fbd920fafab5e5de50a8c6bcc4cf3c8d7
parent6ce9348468c5a8862a036fa8534838fec2c1fabf
net: vertexcom: mse102x: Return code for mse102x_rx_pkt_spi

The MSE102x doesn't provide any interrupt register, so the only way
to handle the level interrupt is to fetch the whole packet from
the MSE102x internal buffer via SPI. So in cases the interrupt
handler fails to do this, it should return IRQ_NONE. This allows
the core to disable the interrupt in case the issue persists
and prevent an interrupt storm.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Link: https://patch.msgid.link/20250509120435.43646-6-wahrenst@gmx.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/vertexcom/mse102x.c