]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:34 +0000 (11:07 +0100)
commit7a12cfe386a25c3db197897d6523cc16bcd2af78
treedc04936f8c3a50c4e8dfdab253621f0999439dae
parenta440d30c8934d74fa186f7ec6865aa8736717a6e
net: vertexcom: mse102x: Return code for mse102x_rx_pkt_spi

[ Upstream commit 4ecf56f4b66011b583644bf9a62188d05dfcd78c ]

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