Page MenuHomeFreeBSD

acpi_spmc(4): Small probe improvements/fixes
ClosedPublic

Authored by olce on Apr 17 2026, 7:52 PM.
Tags
None
Referenced Files
F167039328: D56483.id175785.diff
Tue, Aug 18, 5:21 PM
Unknown Object (File)
Tue, Aug 18, 8:17 AM
Unknown Object (File)
Mon, Aug 17, 8:33 PM
Unknown Object (File)
Sun, Aug 16, 11:09 PM
Unknown Object (File)
Fri, Aug 14, 8:43 PM
Unknown Object (File)
Thu, Aug 13, 2:56 AM
Unknown Object (File)
Tue, Aug 11, 11:32 PM
Unknown Object (File)
Tue, Aug 11, 11:26 PM
Subscribers

Details

Summary

Remove the test on presence of an ACPI handle, this is implied by
ACPI_ID_PROBE() succeeding.

Set 'sc->dev' early, so that acpi_spmc_check_dsm_set() using
device_printf() will print the driver name.

Add a missing newline after printing that more DSM functions are
implemented then expected.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.Apr 17 2026, 7:52 PM
obiwac added inline comments.
sys/dev/acpica/acpi_spmc.c
207

if we do this here then no point in doing it again in attach right?

This revision is now accepted and ready to land.Apr 17 2026, 8:03 PM
sys/dev/acpica/acpi_spmc.c
207

Sure (because we return 0). I'll remove it there.

olce marked an inline comment as done.Apr 17 2026, 8:25 PM
This revision was automatically updated to reflect the committed changes.