diff options
author | Martin Hundebøll <mhu@silicom.dk> | 2021-07-16 16:54:39 +0300 |
---|---|---|
committer | Moritz Fischer <mdf@kernel.org> | 2021-07-29 22:54:10 +0300 |
commit | 1604986c3e6bd84f3f3fd709c1a619c6fc9d79a9 (patch) | |
tree | aefabf9b4c8eac27a3656a22184b3d1676993a07 /include/linux/dfl.h | |
parent | 5f1895e0e381f04ef759cd33636d861b0fdcb3d1 (diff) | |
download | linux-1604986c3e6bd84f3f3fd709c1a619c6fc9d79a9.tar.xz |
fpga: dfl: expose feature revision from struct dfl_device
DFL device drivers have a common need for checking feature revision
information from the DFL header, as well as other common DFL information
like the already exposed feature id and type.
This patch exposes the feature revision information directly via the DFL
device data structure.
Since the DFL core code has already read the DFL header, this this patch
saves additional mmio reads from DFL device drivers too.
Acked-by: Wu Hao <hao.wu@intel.com>
Acked-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Signed-off-by: Martin Hundebøll <mhu@silicom.dk>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Diffstat (limited to 'include/linux/dfl.h')
-rw-r--r-- | include/linux/dfl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dfl.h b/include/linux/dfl.h index 6cc10982351a..431636a0dc78 100644 --- a/include/linux/dfl.h +++ b/include/linux/dfl.h @@ -38,6 +38,7 @@ struct dfl_device { int id; u16 type; u16 feature_id; + u8 revision; struct resource mmio_res; int *irqs; unsigned int num_irqs; |