OSDN Git Service

fpga: region: add compat_id support
authorWu Hao <hao.wu@intel.com>
Sat, 30 Jun 2018 00:53:12 +0000 (08:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Jul 2018 11:55:44 +0000 (13:55 +0200)
commit41a8b2c56470b7e4e3e2db93324d50bbbf60cdc4
tree4e3314c007e056d39805aa8e49cd42678ac9926a
parent99a560bde313892f87ca81db568a829d3d205882
fpga: region: add compat_id support

This patch introduces a compat_id pointer member and sysfs interface
for each fpga region, similar as compat_id for fpga manager, it allows
applications to read the per region compat_id for compatibility
checking before other actions on this fpga-region (e.g. PR).

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-region [new file with mode: 0644]
drivers/fpga/fpga-region.c
include/linux/fpga/fpga-region.h