Re: [PATCH] ACPI: PCI: Rework acpi_get_pci_dev()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Sep 10, 2022 at 03:23:46PM +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> 
> The PCI device returned by acpi_get_pci_dev() needs to be registered,
> so if it corresponds to an ACPI device object, the struct acpi_device
> representing that object must be registered too and, moreover, it
> should be the ACPI companion of the given PCI device.  Thus it should
> be sufficient to look for it in the ACPI device object's list of
> physical nodes associated with it.
> 
> Modify the code accordingly.
> 
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> ---
>  drivers/acpi/pci_root.c |   81 ++++++++----------------------------------------
>  1 file changed, 15 insertions(+), 66 deletions(-)

Nice, less code is always better :)

Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux