mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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>
|
||
|---|---|---|
| .. | ||
| cx88-alsa.c | ||
| cx88-blackbird.c | ||
| cx88-cards.c | ||
| cx88-core.c | ||
| cx88-dsp.c | ||
| cx88-dvb.c | ||
| cx88-i2c.c | ||
| cx88-input.c | ||
| cx88-mpeg.c | ||
| cx88-reg.h | ||
| cx88-tvaudio.c | ||
| cx88-vbi.c | ||
| cx88-video.c | ||
| cx88-vp3054-i2c.c | ||
| cx88-vp3054-i2c.h | ||
| cx88.h | ||
| Kconfig | ||
| Makefile | ||