linux/drivers/fpga
Marco Pagani a3fad2e92c fpga: disable KUnit test suites when module support is enabled
The fpga core currently assumes that all manager, bridge, and region
devices have a parent device associated with a driver that can be used
to take the module's refcount. This behavior causes the fpga test suites
to crash with a null-ptr-deref since parent fake devices do not have a
driver. This patch disables all fpga KUnit test suites when loadable
module support is enabled until the fpga core is fixed. Test suites
can still be run using the KUnit default UML kernel.

Signed-off-by: Marco Pagani <marpagan@redhat.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Fixes: ccbc1c3021 ("fpga: add an initial KUnit suite for the FPGA Manager")
Link: https://lore.kernel.org/r/20231018163814.100803-1-marpagan@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-21 12:31:25 +02:00
..
tests fpga: disable KUnit test suites when module support is enabled 2023-10-21 12:31:25 +02:00
altera-cvp.c
altera-fpga2sdram.c
altera-freeze-bridge.c
altera-hps2fpga.c
altera-pr-ip-core-plat.c
altera-pr-ip-core.c
altera-ps-spi.c
dfl-afu-dma-region.c
dfl-afu-error.c
dfl-afu-main.c
dfl-afu-region.c
dfl-afu.h
dfl-fme-br.c
dfl-fme-error.c
dfl-fme-main.c
dfl-fme-mgr.c
dfl-fme-perf.c
dfl-fme-pr.c
dfl-fme-pr.h
dfl-fme-region.c
dfl-fme.h
dfl-n3000-nios.c
dfl-pci.c fpga: dfl-pci: Use pci_find_vsec_capability() to simplify the code 2023-08-07 18:21:40 +08:00
dfl.c
dfl.h
fpga-bridge.c fpga: bridge: make fpga_bridge_class a static const structure 2023-08-11 23:03:37 +08:00
fpga-mgr.c fpga: fpga-mgr: make fpga_mgr_class a static const structure 2023-08-11 23:04:03 +08:00
fpga-region.c fpga: region: make fpga_region_class a static const structure 2023-08-11 23:04:21 +08:00
ice40-spi.c
intel-m10-bmc-sec-update.c
Kconfig fpga: add configuration for the FPGA KUnit test suites. 2023-07-23 14:04:50 +08:00
lattice-sysconfig-spi.c
lattice-sysconfig.c
lattice-sysconfig.h
machxo2-spi.c
Makefile fpga: add configuration for the FPGA KUnit test suites. 2023-07-23 14:04:50 +08:00
microchip-spi.c
of-fpga-region.c
socfpga-a10.c
socfpga.c
stratix10-soc.c
ts73xx-fpga.c
versal-fpga.c
xilinx-pr-decoupler.c
xilinx-spi.c
zynq-fpga.c
zynqmp-fpga.c