Re: [PATCH] net: ravb: Fix RX error handling

2025-04-20 Thread Marek Vasut
On 4/15/25 12:02 PM, Paul Barker wrote: On 13/04/2025 14:11, Marek Vasut wrote: Correctly handle RX errors in ravb_recv() by returning 0 instead of -EAGAIN on RX error. In case the RAVB driver detects an RX error in ravb_recv(), it must not return the -EAGAIN, but instead must return 0. Both er

Re: [PATCH] net: ravb: Fix RX error handling

2025-04-15 Thread Paul Barker
On 13/04/2025 14:11, Marek Vasut wrote: > Correctly handle RX errors in ravb_recv() by returning 0 instead > of -EAGAIN on RX error. > > In case the RAVB driver detects an RX error in ravb_recv(), it must > not return the -EAGAIN, but instead must return 0. Both error codes > are handled in eth-uc

[PATCH] net: ravb: Fix RX error handling

2025-04-13 Thread Marek Vasut
Correctly handle RX errors in ravb_recv() by returning 0 instead of -EAGAIN on RX error. In case the RAVB driver detects an RX error in ravb_recv(), it must not return the -EAGAIN, but instead must return 0. Both error codes are handled in eth-uclass.c eth_rx() and -EAGAIN is rewritten to 0 at the