Re: [PATCH v2 2/2] pci: Support "removable" attribute for PCI devices

From: Rafael J. Wysocki
Date: Mon Apr 26 2021 - 07:49:36 EST


On Mon, Apr 26, 2021 at 11:17 AM Oliver Neukum <oneukum@xxxxxxxx> wrote:
>
> Am Freitag, den 23.04.2021, 19:16 -0700 schrieb Rajat Jain:
> > Export the already available info, to the userspace via the
> > device core, so that userspace can implement whatever policies it
> > wants to, for external removable devices.
>
> Hi,
>
> is there a way to tell apart whether a device can undergo regular
> surprise removal?

PCI devices located under a removable parent can undergo surprise
removal. The ones on a Thunderbolt chain too.

> Do we want that?

Do you mean surprise removal? Yes, we do.