diff options
author | Joachim Foerster <joachim.foerster@missinglinkelectronics.com> | 2011-10-25 22:39:54 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-26 21:25:42 +0200 |
commit | 337aff53f63ef404bdc42472a6a82f9224cafed6 (patch) | |
tree | 2b64196888d2fd58d9a27ca99115cb027b75616b /drivers/net/altera_tse.c | |
parent | f75dd584cdfe29dfdcfd424bb237b9238cfb8fe4 (diff) | |
download | u-boot-imx-337aff53f63ef404bdc42472a6a82f9224cafed6.zip u-boot-imx-337aff53f63ef404bdc42472a6a82f9224cafed6.tar.gz u-boot-imx-337aff53f63ef404bdc42472a6a82f9224cafed6.tar.bz2 |
altera_tse: Clear SGDMA's RUN bit in async transfer, like in sync case
Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>
Diffstat (limited to 'drivers/net/altera_tse.c')
-rw-r--r-- | 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..47d0047 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 + * to restart the SGDMA engine later on. + */ + dev->control = 0; + + /* * Clear any (previous) status register information * that might occlude our error checking later. */ |