Re: [PATCH v5 1/2] PCI: Add support for a function level reset based on _RST method

From: Sinan Kaya
Date: Sun May 02 2021 - 22:23:05 EST


On 4/30/2021 7:26 PM, Shanker Donthineni wrote:
> The _RST is a standard method specified in the ACPI specification. It
> provides a function level reset when it is described in the acpi_device
> context associated with PCI-device.
>
> Implement a new reset function pci_dev_acpi_reset() for probing RST
> method and execute if it is defined in the firmware. The ACPI binding
> information is available only after calling device_add(), so move
> pci_init_reset_methods() to end of the pci_device_add().
>
> The default priority of the acpi reset is set to below device-specific
> and above hardware resets.
>
> Signed-off-by: Shanker Donthineni <sdonthineni@xxxxxxxxxx>

Reviewed-by: Sinan Kaya <okaya@xxxxxxxxxx>