linux/drivers/fpga
Alan Tull ed81f5fc3c fpga: region: fix slow warning with more than one overlay
When DT overlays are applied, each FPGA region keeps track of the fpga
image info as region->info.  This pointer is assigned only if an
overlay causes the FPGA to be programmed.  As it stands, this pointer
can be overwritten, causing a slow warning later when overlays are
removed.

This patch fixes this by changing the allowed behaviour.  If a region
has received an overlay that programmed the FPGA, reject other
overlays that try to program the FPGA.  To reprogram the FPGA, first
remove the overlay.  This makes sense as removing the overlay also
removes the devices cleanly.  Note that overlays that make DT changes
without reprogramming the FPGA are exempt from this restriction.

Signed-off-by: Alan Tull <atull@kernel.org>
Acked-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-28 16:30:37 +01:00
..
altera-cvp.c fpga: altera-cvp: remove DRIVER_ATTR() usage 2017-09-19 09:20:33 +02:00
altera-fpga2sdram.c ARM: socfpga: checking the wrong variable 2016-11-17 08:14:55 +01:00
altera-freeze-bridge.c fpga fr br: update supported version numbers 2017-04-26 11:38:56 +02:00
altera-hps2fpga.c fpga: altera-hps2fpga: fix multiple init of l3_remap_lock 2017-08-10 14:27:55 -07:00
altera-pr-ip-core-plat.c fpga pr ip: Platform driver for Altera Partial Reconfiguration IP. 2017-04-08 17:45:28 +02:00
altera-pr-ip-core.c fpga pr ip: Core driver support for Altera Partial Reconfiguration IP. 2017-04-08 17:45:28 +02:00
altera-ps-spi.c fpga-manager: altera-ps-spi: use bitrev8x4 2017-07-17 17:26:14 +02:00
fpga-bridge.c fpga: bridge: support getting bridge from device 2017-11-28 16:30:36 +01:00
fpga-mgr.c fpga: mgr: separate getting/locking FPGA manager 2017-11-28 16:30:37 +01:00
fpga-region.c fpga: region: fix slow warning with more than one overlay 2017-11-28 16:30:37 +01:00
ice40-spi.c fpga: Add support for Lattice iCE40 FPGAs 2017-03-17 15:10:48 +09:00
Kconfig fpga manager: Add Altera CvP driver 2017-07-17 17:26:15 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
socfpga-a10.c fpga: Clarify how write_init works streaming modes 2016-11-29 15:51:49 -06:00
socfpga.c fpga-mgr: add fpga image information struct 2016-11-10 17:03:35 +01:00
ts73xx-fpga.c FPGA: Add TS-7300 FPGA manager 2017-03-17 15:10:48 +09:00
xilinx-pr-decoupler.c fpga: make xlnx_pr_decoupler_br_ops const 2017-10-04 10:36:40 +02:00
xilinx-spi.c fpga manager: Add Xilinx slave serial SPI driver 2017-04-08 17:45:28 +02:00
zynq-fpga.c fpga: zynq: Add support for encrypted bitstreams 2017-03-17 15:10:48 +09:00