Skip to content
Commit 41a0cfd0 authored by Valentine Barshak's avatar Valentine Barshak Committed by Marek Vasut
Browse files

net: sh_eth: Fix RX error handling



In case RX error occurs, and the RD_RFE bit is set, the descriptor
is never returned back to the queue. Make sh_eth_recv_start return
zero length in this case so that the descriptor can be released
and pushed back to the list. Also return the more appropriate
-EAGAIN instead of -EINVAL if the descriptor is not ready yet.

Signed-off-by: default avatarValentine Barshak <valentine.barshak@cogentembedded.com>
Reviewed-by: default avatarMarek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
parent d49ba9c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment