Re: [PATCH] platform/x86/intel/vsec: reset state before re-enumerating
From: Ilpo Järvinen
Date: Tue Sep 15 2026 - 09:34:31 EST
On Wed, 08 Jul 2026 11:26:47 +0800, Guangshuo Li wrote:
> The change referenced by the Fixes tag split the VSEC enumeration logic
> out of intel_vsec_pci_probe() and made PCIe error recovery call
> intel_vsec_pci_init() directly. This avoids another pcim_enable_device()
> devm action and another devm allocation during slot reset, but it also
> means that error recovery reuses the priv structure allocated by probe.
>
> On the initial probe, priv is zeroed by devm_kzalloc(), so state[],
> suppliers[] and found_caps start from their initial values. During slot
> reset, the existing aux devices are removed before re-enumerating, but
> the reused priv still records the old devices as registered and the old
> capabilities as found.
>
> [...]
Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.
FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.
The list of commits applied:
[1/1] platform/x86/intel/vsec: reset state before re-enumerating
commit: 34744f72e1b83b8fc55f7321819c4bc8daab0a69
--
i.