Re: [PATCH] PCI: Save the Root Port state before a platform-specific reset
From: Lukas Wunner
Date: Tue Nov 10 2026 - 06:01:52 EST
On Tue, Nov 10, 2026 at 01:33:48PM +0800, lirongqing wrote:
> pcibios_reset_secondary_bus() restores the Root Port after
> host->reset_root_port() without ever saving it. pci_bus_reset() only locks
> the devices below the bridge, so the bridge itself is not in the saved set
> either. Save the Root Port before the platform reset.
The state is saved on enumeration in pci_bus_add_device(),
see commit a2f1e22390ac. Please explain why that is not
sufficient for you.
Thanks,
Lukas