diff options
author | Valentine Barshak | 2023-05-31 00:51:31 +0200 |
---|---|---|
committer | Marek Vasut | 2023-06-10 13:34:05 +0200 |
commit | 41a0cfd0c5123cffb3a945223b6ef153df61f352 (patch) | |
tree | d1e76b8d1c294f22fa86a44959a9a02c46a1691b /arch/arm/dts | |
parent | d49ba9c8d70c30d6f009e069cf43b4817be3546d (diff) |
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: Valentine Barshak <valentine.barshak@cogentembedded.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'arch/arm/dts')
0 files changed, 0 insertions, 0 deletions