linux/drivers/fpga
Marek Szyprowski 37e0070322 zynq_fpga: use sgtable-based scatterlist wrappers
Use common wrappers operating directly on the struct sg_table objects to
fix incorrect use of statterlists related calls. dma_unmap_sg() function
has to be called with the number of elements originally passed to the
dma_map_sg() function, not the one returned in sgtable's nents.

CC: stable@vger.kernel.org
Fixes: 425902f5c8 ("fpga zynq: Use the scatterlist interface")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20250616120932.1090614-1-m.szyprowski@samsung.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
2025-06-18 10:36:55 +08:00
..
tests FPGA Manager changes for 6.16-rc1 2025-05-21 14:08:44 +02:00
altera-cvp.c fpga: altera-cvp: Increase credit timeout 2025-03-01 17:36:58 +08:00
altera-fpga2sdram.c fpga: Switch back to struct platform_driver::remove() 2024-11-11 10:43:21 +08:00
altera-freeze-bridge.c fpga: Switch back to struct platform_driver::remove() 2024-11-11 10:43:21 +08:00
altera-hps2fpga.c fpga: Switch back to struct platform_driver::remove() 2024-11-11 10:43:21 +08:00
altera-pr-ip-core-plat.c fpga: Explicitly include correct DT includes 2023-07-17 09:23:04 +08:00
altera-pr-ip-core.c fpga: altera-pr-ip: fix unsigned comparison with less than zero 2022-06-10 15:48:23 +08:00
altera-ps-spi.c fpga: altera: drop driver owner assignment 2024-04-01 16:39:57 +08:00
dfl-afu-dma-region.c fpga: dfl: refactor internal DFL APIs to take/return feature device data 2024-12-18 22:28:48 +08:00
dfl-afu-error.c fpga: dfl: refactor internal DFL APIs to take/return feature device data 2024-12-18 22:28:48 +08:00
dfl-afu-main.c fpga: dfl: refactor internal DFL APIs to take/return feature device data 2024-12-18 22:28:48 +08:00
dfl-afu-region.c fpga: dfl: refactor internal DFL APIs to take/return feature device data 2024-12-18 22:28:48 +08:00
dfl-afu.h fpga: dfl: refactor internal DFL APIs to take/return feature device data 2024-12-18 22:28:48 +08:00
dfl-fme-br.c fpga: dfl: drop unneeded get_device() and put_device() of feature device 2024-12-18 22:28:48 +08:00
dfl-fme-error.c fpga: dfl: refactor internal DFL APIs to take/return feature device data 2024-12-18 22:28:48 +08:00
dfl-fme-main.c fpga: dfl: refactor internal DFL APIs to take/return feature device data 2024-12-18 22:28:48 +08:00
dfl-fme-mgr.c fpga: dfl-fme-mgr: Convert to devm_platform_ioremap_resource() 2023-07-10 16:41:44 +08:00
dfl-fme-perf.c fpga: dfl: more kernel-doc corrections 2023-01-28 23:33:43 +08:00
dfl-fme-pr.c fpga: dfl: refactor internal DFL APIs to take/return feature device data 2024-12-18 22:28:48 +08:00
dfl-fme-pr.h fpga: dfl: more kernel-doc corrections 2023-01-28 23:33:43 +08:00
dfl-fme-region.c fpga: Switch back to struct platform_driver::remove() 2024-11-11 10:43:21 +08:00
dfl-fme.h fpga: dfl: remove unused member pdata from struct dfl_{afu,fme} 2024-04-23 15:36:33 +08:00
dfl-n3000-nios.c fpga: fix spelling mistakes 2021-07-21 19:54:21 -07:00
dfl-pci.c fpga/dfl-pci.c: Replace deprecated PCI functions 2024-11-07 07:10:11 -06:00
dfl.c fpga: dfl: destroy/recreate feature platform device on port release/assign 2024-12-18 22:28:48 +08:00
dfl.h fpga: dfl: drop unneeded get_device() and put_device() of feature device 2024-12-18 22:28:48 +08:00
fpga-bridge.c fpga: bridge: add owner module and take its refcount 2024-03-31 21:54:44 +08:00
fpga-mgr.c fpga: manager: add owner module and take its refcount 2024-03-31 21:50:39 +08:00
fpga-region.c fpga: region: add owner module and take its refcount 2024-04-23 15:37:20 +08:00
ice40-spi.c fpga: ice40-spi: Don't use "proxy" headers 2024-04-23 15:36:32 +08:00
intel-m10-bmc-sec-update.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
Kconfig fpga: xilinx-selectmap: add new driver 2024-03-31 22:44:21 +08:00
lattice-sysconfig-spi.c fpga: lattice-sysconfig-spi: Add explicit include for of.h 2023-04-06 20:36:27 +02:00
lattice-sysconfig.c fpga: lattice-sysconfig-spi: add Lattice sysCONFIG FPGA manager 2022-10-25 14:44:03 +08:00
lattice-sysconfig.h fpga: lattice-sysconfig-spi: add Lattice sysCONFIG FPGA manager 2022-10-25 14:44:03 +08:00
machxo2-spi.c fpga: mgr: Use standard dev_release for class driver 2021-11-28 13:59:13 -08:00
Makefile fpga: xilinx-selectmap: add new driver 2024-03-31 22:44:21 +08:00
microchip-spi.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
of-fpga-region.c fpga: Switch back to struct platform_driver::remove() 2024-11-11 10:43:21 +08:00
socfpga-a10.c fpga: Switch back to struct platform_driver::remove() 2024-11-11 10:43:21 +08:00
socfpga.c fpga: socfpga: Rename 'timeout' variable as 'time_left' 2024-08-14 23:57:07 +08:00
stratix10-soc.c fpga: Switch back to struct platform_driver::remove() 2024-11-11 10:43:21 +08:00
ts73xx-fpga.c fpga: fpga-mgr: ts73xx: Convert to devm_platform_ioremap_resource() 2023-07-10 16:52:58 +08:00
versal-fpga.c fpga: versal: remove incorrect of_match_ptr annotation 2025-03-01 17:37:31 +08:00
xilinx-core.c fpga: xilinx-core: add new gpio names for prog and init 2024-03-31 22:48:13 +08:00
xilinx-core.h fpga: xilinx-spi: extract a common driver core 2024-03-31 22:41:26 +08:00
xilinx-pr-decoupler.c fpga: Switch back to struct platform_driver::remove() 2024-11-11 10:43:21 +08:00
xilinx-selectmap.c fpga: xilinx-selectmap: add new driver 2024-03-31 22:44:21 +08:00
xilinx-spi.c fpga: xilinx-spi: extract a common driver core 2024-03-31 22:41:26 +08:00
zynq-fpga.c zynq_fpga: use sgtable-based scatterlist wrappers 2025-06-18 10:36:55 +08:00
zynqmp-fpga.c fpga: zynqmp-fpga: Adds status interface 2023-03-09 17:33:19 +01:00