Re: [PATCH v10 01/12] ACPI: Add acpi_resource_consumer() to find device that claims a resource

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

 



On Thu, Dec 01, 2016 at 02:17:20PM +0100, Rafael J. Wysocki wrote:
> On Thu, Dec 1, 2016 at 9:29 AM, Bjorn Helgaas <helgaas@xxxxxxxxxx> wrote:
> > From: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
> >
> > Add acpi_resource_consumer().  This takes a struct resource and searches
> > the ACPI namespace for a device whose current resource settings (_CRS)
> > includes the resource.  It returns the device if it exists, or NULL if no
> > device uses the resource.
> >
> > If more than one device uses the resource (this may happen in the case of
> > bridges), acpi_resource_consumer() returns the first one found by
> > acpi_get_devices() in its modified depth-first walk of the namespace.
> >
> > Signed-off-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
> 
> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> 
> (this patch should have been CCed to linux-acpi too, however).

Thanks for taking a look!  I didn't CC linux-acpi because this was mostly
to get build testing and I didn't want linux-acpi to get spammed by
buildbot errors.  I'll add linux-acpi on future postings.

Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux