]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86/intel/vsec: Create wrapper to walk PCI config space
authorDavid E. Box <david.e.box@linux.intel.com>
Thu, 3 Jul 2025 02:28:18 +0000 (19:28 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 3 Jul 2025 08:09:22 +0000 (11:09 +0300)
commitb0631f8a5740c55b52d02174cc4c9c84cc7a16a1
tree44c67734f9a748e15447eac7bd26758a4c689100
parentdc957ab6aa05c118c3da0542428a4d6602aa2d2d
platform/x86/intel/vsec: Create wrapper to walk PCI config space

Combine three PCI config space walkers — intel_vsec_walk_dvsec(),
intel_vsec_walk_vsec(), and intel_vsec_walk_header() — into a new wrapper
function, intel_vsec_feature_walk().  This refactoring simplifies the probe
logic and lays the groundwork for future patches that will loop over these
calls. No functional changes.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20250703022832.1302928-4-david.e.box@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/vsec.c