OSDN Git Service

PCI: acpiphp_ibm: prepare for acpi_get_object_info() no longer returning status
authorHans de Goede <hdegoede@redhat.com>
Fri, 26 Jan 2018 15:02:57 +0000 (16:02 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 4 Feb 2018 08:11:56 +0000 (09:11 +0100)
commitb0fd6772cfe10cd1edd65a376522e430e5f1bc58
tree70a3526f6aee75b5789d3d6be96a43e4e8b139e2
parent5a98231f554779fb1649f477b70bed1fd17222f2
PCI: acpiphp_ibm: prepare for acpi_get_object_info() no longer returning status

acpi_get_object_info() is intended for early probe usage and as such should
not call any methods which may rely on OpRegions, but it used to also call
_STA to get the status, which on some systems does rely on OpRegions, this
behavior and the acpi_device_info.current_status member are being removed.

This commit prepares the acpiphp_ibm code for this by having it get the
status itself using acpi_bus_get_status_handle(). Note no error handling is
necessary on any errors acpi_bus_get_status_handle() leaves the value of
the passed in current_status at its 0 initialization value.

Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/hotplug/acpiphp_ibm.c