linux_dsm_epyc7002/drivers/media
Ricardo Ribalda 6a5d77cbf2 [media] media/videobuf2-dma-sg: Fix handling of sg_table structure
When sg_alloc_table_from_pages() does not fail it returns a sg_table
structure with nents and nents_orig initialized to the same value.

dma_map_sg returns the number of areas mapped by the hardware,
which could be different than the areas given as an input.
The output must be saved to nent.

The output of dma_map, should be used to transverse the scatter list.

dma_unmap_sg needs the value passed to dma_map_sg (nents_orig).

sg_free_tables uses also orig_nent.

This patch fix the file to follow this paradigm.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-05-30 11:28:29 -03:00
..
common [media] b2c2: Reset no_base_addr on skystarS2 attach failure 2015-05-18 17:48:13 -03:00
dvb-core [media] dvb-core: fix 32-bit overflow during bandwidth calculation 2015-05-20 14:01:46 -03:00
dvb-frontends [media] cx24120: fix sparse warning 2015-05-30 11:22:14 -03:00
firewire [media] firewire: Deletion of an unnecessary check before the function call "dvb_unregister_device" 2014-11-25 13:30:31 -02:00
i2c [media] adv7604/cobalt: missing GPIOLIB dependency 2015-05-30 11:22:51 -03:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci [media] adv7604/cobalt: missing GPIOLIB dependency 2015-05-30 11:22:51 -03:00
platform [media] rcar-vin: use monotonic timestamps 2015-05-18 16:27:30 -03:00
radio [media] radio: fix error return code 2015-05-01 07:02:16 -03:00
rc [media] rc: nuvoton-cir: Add support for writing wakeup samples via sysfs filter callback 2015-05-14 14:37:03 -03:00
tuners [media] e4000: fix compiler warning 2015-05-30 11:20:09 -03:00
usb [media] rtl28xxu: load SDR module for fc2580 based devices 2015-05-18 15:59:35 -03:00
v4l2-core [media] media/videobuf2-dma-sg: Fix handling of sg_table structure 2015-05-30 11:28:29 -03:00
Kconfig media controller: add EXPERIMENTAL to Kconfig option for DVB support 2015-05-08 14:48:49 -03:00
Makefile [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
media-device.c [media] media: Use strlcpy instead of custom code 2014-09-21 20:27:08 -03:00
media-devnode.c [media] media-devnode: just return 0 instead of using a var 2014-09-03 17:59:28 -03:00
media-entity.c [media] media: Fix a compiler warning in media_entity_pipeline_start() 2014-11-03 19:09:13 -02:00