mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
net: axi_emac: Change return value to -EAGAIN if RX is not ready
If there is no incoming package than axiemac_recv will return -1 which in turn leads to printing `eth_rx: recv() returned error -1` error message in eth_rx function. But missing a package is not an fatal error, so return -EAGAIN in that case would be more suitable. Signed-off-by: Maksim Kiselev <bigunclemax@gmail.com> Link: https://lore.kernel.org/r/20230719065337.69280-1-bigunclemax@gmail.com Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
parent
c310c98201
commit
3fb4ef7d39
1 changed files with 1 additions and 1 deletions
|
@ -748,7 +748,7 @@ static int axiemac_recv(struct udevice *dev, int flags, uchar **packetp)
|
|||
|
||||
/* Wait for an incoming packet */
|
||||
if (!isrxready(priv))
|
||||
return -1;
|
||||
return -EAGAIN;
|
||||
|
||||
debug("axiemac: RX data ready\n");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue