| commit | b7279ef919c893d6980c5a584dd2c3c13ea2bb1e | [log] [tgz] |
|---|---|---|
| author | Alan Tull <atull@kernel.org> | Wed Feb 15 10:14:18 2017 -0600 |
| committer | Alan Tull <atull@kernel.org> | Tue Feb 28 11:19:45 2017 -0600 |
| tree | 3412b5614c1950f5d8c931b396ca4f48e71b69af | |
| parent | e9b4aee3a2f6d89406e1ed3d448cc88e3d4a3e56 [diff] |
fpga-mgr: separate getting/locking FPGA manager Add fpga_mgr_lock/unlock functions that get a mutex for exclusive use. of_fpga_mgr_get, fpga_mgr_get, and fpga_mgr_put no longer lock the FPGA manager mutex. This makes it more straightforward to save a reference to a FPGA manager and only attempting to lock it when programming the FPGA. Signed-off-by: Alan Tull <atull@kernel.org>