Re: [PATCH 1/1] PCI: acpi_pcihp, run _OSC on a root bridge

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alex Chiang
Date: Monday, August 18, 2008 - 7:30 am

* Jesse Barnes <jbarnes@virtuousgeek.org>:

Reviewed the PCI fw spec (v3.0) and this code, and Jiri's change
seems sane to me.

One minor nit below.


This looks an awful lot like the first few lines of
aer_osc_setup(). Any chance you could factor those lines out into
a common inline?

static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev)
{
	while (pdev->bus->self)
		pdev = pdev->bus->self;

	return acpi_get_pci_rootbridge_handle(pci_domain_nr(pdev->bus),
					      pdev->bus->number);
}

<linux/pci-acpi.h> might be a good place for that.

Just a thought.

But otherwise,

Acked-by: Alex Chiang <achiang@hp.com>

Thanks.

/ac

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/1] PCI: acpi_pcihp, run _OSC on a root bridge, Alex Chiang, (Mon Aug 18, 7:30 am)
[PATCH 1/1] PCI: add acpi_find_root_bridge_handle, Jiri Slaby, (Mon Aug 18, 10:47 am)
Re: [PATCH 1/1] PCI: add acpi_find_root_bridge_handle, Alex Chiang, (Mon Aug 18, 10:54 am)
[PATCH 1/1 #2] PCI: add acpi_find_root_bridge_handle, Jiri Slaby, (Mon Aug 18, 11:22 am)