Page MenuHomeFreeBSD

Add plug and play information macroses for ACPI and I2C buses.
ClosedPublic

Authored by wulf on Oct 17 2020, 12:26 AM.
Tags
None
Referenced Files
F169169036: D26824.id.diff
Mon, Aug 31, 4:21 PM
F169140092: D26824.diff
Mon, Aug 31, 1:48 PM
Unknown Object (File)
Sat, Aug 29, 1:59 PM
Unknown Object (File)
Sat, Aug 29, 12:40 AM
Unknown Object (File)
Sat, Aug 29, 12:38 AM
Unknown Object (File)
Wed, Aug 26, 11:13 AM
Unknown Object (File)
Tue, Aug 25, 8:55 PM
Unknown Object (File)
Sun, Aug 23, 7:37 PM
Subscribers

Details

Summary

Matching table format is compatible with ACPI_ID_PROBE bus method used in most ACPI drivers.

Test Plan

ACPI part is tested with acpi_wmi(4) and acpi_dock(4) drivers. Required changes to these drivers are included.
IICBUS part is tested with development version of sysutils/iichid.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

wulf requested review of this revision.Oct 17 2020, 12:26 AM
wulf created this revision.

One nit on the comments, otherwise it's fine. Fix that and I'm good with what you commit (so I'm accepting it now). I'm a little worried about the DEV_ACPI ifdef, but it's likely fine... I suspect we'll have at least one module not built properly, or built independently of the tree that has issues, but we can look into those when that happens.

sys/dev/acpica/acpivar.h
236 ↗(On Diff #78339)

You may wish to note that ACPI_ID_PROBE looks at both _HID and _CID, so both need to be listed. It took me a second to realize what you were doing here, and so I suspect others may need the hint as well.

This revision is now accepted and ready to land.Oct 17 2020, 7:27 PM