OSDN Git Service

bcm2835_dma: Re-initialize xlen in TD mode
authorRene Stange <rsta2@o2online.de>
Fri, 7 Feb 2020 14:04:28 +0000 (14:04 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 7 Feb 2020 14:04:28 +0000 (14:04 +0000)
commit25437c09d7c46dea4a87dcff6642ce786fe14d28
treed781894a545a4e3216873aabeeebe76183c7a844
parenteb87ff05eab2a39bc0fcd8b4ec51433c4e7fbe42
bcm2835_dma: Re-initialize xlen in TD mode

TD (two dimensions) DMA mode did not work, because the xlen variable
has not been re-initialized before each additional ylen run through
in bcm2835_dma_update(). Fix it.

Signed-off-by: Rene Stange <rsta2@o2online.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/dma/bcm2835_dma.c