]> git.baikalelectronics.ru Git - kernel.git/commit
fpga: mgr: add status for fpga-manager
authorWu Hao <hao.wu@intel.com>
Sat, 30 Jun 2018 00:53:10 +0000 (08:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Jul 2018 11:55:44 +0000 (13:55 +0200)
commit05f75aa8c159b0f714b6abee6fa8aa2261c76468
tree6a3db26d67f707197718d8b772f19fbca8fe8e5c
parent43957f250cadfeaf91bd36a716b9a357b2f873cc
fpga: mgr: add status for fpga-manager

This patch adds status sysfs interface for fpga manager, it's a
read only interface which allows user to get fpga manager status,
including full/partial reconfiguration error and other status
information. It adds a status callback to fpga_manager_ops too,
allows each fpga_manager driver to define its own method to
collect latest status from hardware.

The following sysfs file is created:
* /sys/class/fpga_manager/<fpga>/status
  Return status of fpga manager, including reconfiguration errors.

Signed-off-by: Wu Hao <hao.wu@intel.com>
Acked-by: Alan Tull <atull@kernel.org>
Acked-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-class-fpga-manager
drivers/fpga/fpga-mgr.c
include/linux/fpga/fpga-mgr.h