[U-Boot] [PATCH 1/5] altera_tse: Clear SGDMA's RUN bit in async case, too.
Joachim Foerster
joachim.foerster at missinglinkelectronics.com
Mon Oct 17 17:24:42 CEST 2011
Signed-off-by: Joachim Foerster <joachim.foerster at missinglinkelectronics.com>
---
drivers/net/altera_tse.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c
index 54a944b..c7f8ba9 100644
--- a/drivers/net/altera_tse.c
+++ b/drivers/net/altera_tse.c
@@ -199,6 +199,12 @@ static int alt_sgdma_do_async_transfer(volatile struct alt_sgdma_registers *dev,
debug("Timeout waiting sgdma in do async!\n");
/*
+ * Clear the RUN bit in the control register. This is needed
+ * restart the SGDMA engine later on.
+ */
+ dev->control = 0;
+
+ /*
* Clear any (previous) status register information
* that might occlude our error checking later.
*/
--
1.7.6
More information about the U-Boot
mailing list