mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 18:14:07 +08:00
f95fc014e0
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in turn holds the result of the dma_map_sg call as stated in include/linux/scatterlist.h. Adapt the code to obey those rules. While touching this code, update it to use the modern DMA_FROM_DEVICE definitions. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> |
||
---|---|---|
.. | ||
cx25821-alsa.c | ||
cx25821-audio.h | ||
cx25821-biffuncs.h | ||
cx25821-cards.c | ||
cx25821-core.c | ||
cx25821-gpio.c | ||
cx25821-i2c.c | ||
cx25821-medusa-defines.h | ||
cx25821-medusa-reg.h | ||
cx25821-medusa-video.c | ||
cx25821-medusa-video.h | ||
cx25821-reg.h | ||
cx25821-sram.h | ||
cx25821-video.c | ||
cx25821-video.h | ||
cx25821.h | ||
Kconfig | ||
Makefile |