Re: [PATCH v4 1/8] platform/x86/intel: Add Primary to Sideband (P2SB) bridge support

From: Lukas Wunner
Date: Sun May 08 2022 - 06:51:05 EST


On Sun, May 08, 2022 at 12:05:53PM +0200, Andy Shevchenko wrote:
> On Sun, May 8, 2022 at 9:13 AM Lukas Wunner <lukas@xxxxxxxxx> wrote:
> > pci_lock_rescan_remove() prevents concurrent unhiding as well as
> > removal via sysfs.
>
> Yep, that's good. In any case this piece of code will be gone if your
> above suggestion works, have I got it right?

Yes. You just need to make sure that you call pci_scan_single_device()
*after* unhiding the P2SB device so that this check succeeds:

pci_scan_single_device()
pci_scan_device()
pci_bus_read_dev_vendor_id()

Thanks,

Lukas