]> git.ipfire.org Git - thirdparty/linux.git/commit
fpga: altera-cvp: Use pci_find_vsec_capability() when probing FPGA device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sun, 9 Nov 2025 20:16:37 +0000 (21:16 +0100)
committerXu Yilun <yilun.xu@linux.intel.com>
Mon, 10 Nov 2025 07:03:13 +0000 (15:03 +0800)
commitc9243d6df0d617535e842aa4c3d1d7dfdb91d07b
tree62b6cb161d36366c71cbcffa338f8469a5817969
parent2cf07ffeba5eb893c9f3637cbdbc5dcf95d7eaac
fpga: altera-cvp: Use pci_find_vsec_capability() when probing FPGA device

Currently altera_cvp_probe() open-codes pci_find_vsec_capability().
Refactor the former to use the latter.

With that done:
- use the VSEC ID as per datasheet [1]
- update the error message accordingly

Link: https://www.intel.com/content/www/us/en/docs/programmable/683763/23-1/vendor-specific-header-register.html
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20251109201729.3220460-1-andriy.shevchenko@linux.intel.com
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/altera-cvp.c