[U-Boot] [PATCH 5/5] altera_tse: Fix return of eth_device's recv() callback.

Joachim Foerster joachim.foerster at missinglinkelectronics.com
Mon Oct 17 17:24:46 CEST 2011


Signed-off-by: Joachim Foerster <joachim.foerster at missinglinkelectronics.com>
---
 drivers/net/altera_tse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c
index 04e19cb..c4ff8c7 100644
--- a/drivers/net/altera_tse.c
+++ b/drivers/net/altera_tse.c
@@ -323,6 +323,8 @@ static int tse_eth_rx(struct eth_device *dev)
 
 		/* setup the sgdma */
 		alt_sgdma_do_async_transfer(priv->sgdma_rx, &rx_desc[0]);
+
+		return packet_length;
 	}
 
 	return -1;
-- 
1.7.6



More information about the U-Boot mailing list