HomeFreeBSD

ACPI: change arguments to internal acpi_find_dsd()

Description

ACPI: change arguments to internal acpi_find_dsd()

acpi_find_dsd() is not a bus function and we only need the acpi_device (ad).
The only caller has already looked up the ad (from ivars) for us.
Directly pass the ad to acpi_find_dsd() instead of bus, dev and remove
the extra call to device_get_ivars(); the changed argument also means we
now call AcpiEvaluateObject directly on the handle.

This optimisation was done a while ago while debugging a driver which
ended up with a bad bus, dev combination making the old version fail.

MFC after: 2 weeks
Reviewed by: mw
Differential Revision: https://reviews.freebsd.org/D35558

Details

Provenance
bzAuthored on Jun 23 2022, 12:17 AM
Reviewer
mw
Differential Revision
D35558: ACPI: change arguments to internal acpi_find_dsd()
Parents
rG513ce835b558: testing: pass ATF vars to pytest via env instead of arguments.
Branches
Unknown
Tags
Unknown