mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
altera_tse: Fix return of eth_device's recv() callback
It seems to be good practice to return the number of received bytes in the eth_device's recv() callback, here: tse_eth_rx(). Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>
This commit is contained in:
parent
15eb106966
commit
70d52f9a4e
1 changed files with 2 additions and 0 deletions
|
@ -323,6 +323,8 @@ static int tse_eth_rx(struct eth_device *dev)
|
||||||
|
|
||||||
/* setup the sgdma */
|
/* setup the sgdma */
|
||||||
alt_sgdma_do_async_transfer(priv->sgdma_rx, &rx_desc[0]);
|
alt_sgdma_do_async_transfer(priv->sgdma_rx, &rx_desc[0]);
|
||||||
|
|
||||||
|
return packet_length;
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue