08 Sep, 2016
1 commit
-
The Zynq FPGA manager driver serves no purpose on other architectures
so hide it unless build-testing.Signed-off-by: Jean Delvare
Acked-by: Moritz Fischer
Acked-by: Alan Tull
Acked-by: Michal Simek
Cc: "Sören Brinkmann"
Signed-off-by: Greg Kroah-Hartman
04 Aug, 2016
1 commit
-
While building m32r allmodconfig the build is failing with the error:
ERROR: "bad_dma_ops" [drivers/fpga/zynq-fpga.ko] undefined!
Xilinx Zynq FPGA is using DMA but there was no dependency while
building.Link: http://lkml.kernel.org/r/1464346526-13913-1-git-send-email-sudipm.mukherjee@gmail.com
Signed-off-by: Sudip Mukherjee
Acked-by: Moritz Fischer
Cc: Alan Tull
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
25 Nov, 2015
2 commits
-
If fpga_mgr_buf_load() fails, the firmware resource previously allocated
by request_firmware() is leaked. Fix it by calling release_firmware()
regardless of the return value of fpga_mgr_buf_load().Found by the Coverity scanner (CID 1339653).
Fixes: 6a8c3be7ec8e ("add FPGA manager core")
Signed-off-by: Tobias Klauser
Acked-by: Alan Tull
Signed-off-by: Greg Kroah-Hartman -
Remove implementation of 'label' DT binding.
Signed-off-by: Alan Tull
Reviewed-by: Moritz Fischer
Signed-off-by: Greg Kroah-Hartman
30 Oct, 2015
1 commit
-
The return value should be checked for non-zero, instead
of checking it being IS_ERR_VALUE().Acked-by: Alan Tull
Reviewed-by: Josh Cartwright
Signed-off-by: Moritz Fischer
Signed-off-by: Greg Kroah-Hartman
24 Oct, 2015
5 commits
-
Upon registering a FPGA Manager low level driver, FPGA Manager
core overwrites the platform drvdata pointer. Prior to this commit
zynq-fpga falsely relied on this pointer to still be valid at remove()
time.Reported-by: Alan Tull
Signed-off-by: Moritz Fischer
Acked-by: Alan Tull
Signed-off-by: Greg Kroah-Hartman -
Remove unnecessary null pointer checks. We want the caller of
these functions to do their own pointer checks. Add some
comments to document this.Signed-off-by: Alan Tull
Reviewed-by: Moritz Fischer
Signed-off-by: Greg Kroah-Hartman -
Ensure device and driver lifetime from of_fpga_mgr_get() to
fpga_mgr_put().* Don't put_device() in of_fpga_mgr_get, do it in fpga_mgr_put().
(still do put_device if there is an error).
* Do module_get on the low level driver.
* Don't need to module_get(THIS_MODULE) since we won't be allowed
to unload the fpga manager core without unloading low level
driver first.
* Remove unnedessary null check for node pointer.Signed-off-by: Alan Tull
Signed-off-by: Greg Kroah-Hartman -
This gets rid of the code to strip away the header and byteswap,
as well as the check for the sync word.Signed-off-by: Moritz Fischer
Reviewed-by: Josh Cartwright
Acked-by: Michal Simek
Signed-off-by: Greg Kroah-Hartman -
This commit fixes the unbalanced clock handling, where
a failed probe would leave the clock with an enable count of -1.Reported-by: Josh Cartwright
Signed-off-by: Moritz Fischer
Signed-off-by: Greg Kroah-Hartman
18 Oct, 2015
1 commit
-
This commit adds FPGA Manager support for the Xilinx Zynq chip.
The code borrows some from the xdevcfg driver in Xilinx'
vendor tree.Signed-off-by: Moritz Fischer
Signed-off-by: Greg Kroah-Hartman
08 Oct, 2015
2 commits
-
Add driver to fpga manager framework to allow configuration
of FPGA in Altera SoCFPGA parts.Signed-off-by: Alan Tull
Acked-by: Michal Simek
Acked-by: Moritz Fischer
Signed-off-by: Greg Kroah-Hartman -
API to support programming FPGA's.
The following functions are exported as GPL:
* fpga_mgr_buf_load
Load fpga from image in buffer* fpga_mgr_firmware_load
Request firmware and load it to the FPGA.* fpga_mgr_register
* fpga_mgr_unregister
FPGA device drivers can be added by calling
fpga_mgr_register() to register a set of
fpga_manager_ops to do device specific stuff.* of_fpga_mgr_get
* fpga_mgr_put
Get/put a reference to a fpga manager.The following sysfs files are created:
* /sys/class/fpga_manager//name
Name of low level driver.* /sys/class/fpga_manager//state
State of fpga managerSigned-off-by: Alan Tull
Acked-by: Michal Simek
Signed-off-by: Greg Kroah-Hartman