fpga: dfl: check feature type before parse irq info
authorTianfei zhang <tianfei.zhang@intel.com>
Tue, 19 Apr 2022 03:29:41 +0000 (23:29 -0400)
committerXu Yilun <yilun.xu@intel.com>
Tue, 10 May 2022 08:05:15 +0000 (16:05 +0800)
commit88b3f3ff38d188e3c54603ea0244139cc55348fc
treeecb3733d5e0ed26ed8723193762fd414890e9dd1
parent838a84382a9d78f306903e173bcaacd2e5178d9b
fpga: dfl: check feature type before parse irq info

Previously the feature IDs defined are unique, no matter
which feature type. But currently we want to extend its
usage to have a per-type feature ID space, so this patch
adds feature type checking as well just before look into
feature ID for different features which have irq info.

Signed-off-by: Tianfei zhang <tianfei.zhang@intel.com>
Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Acked-by: Wu Hao <hao.wu@intel.com>
Acked-by: Moritz Fischer <mdf@kernel.org>
Link: https://lore.kernel.org/r/20220419032942.427429-2-tianfei.zhang@intel.com
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
drivers/fpga/dfl.c