Page MenuHomeFreeBSD

acpi_spmc(4): Small probe improvements/fixes
ClosedPublic

Authored by olce on Apr 17 2026, 7:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 14, 6:29 AM
Unknown Object (File)
Wed, May 13, 11:21 PM
Unknown Object (File)
Wed, May 13, 9:28 PM
Unknown Object (File)
Wed, May 13, 9:28 PM
Unknown Object (File)
Wed, May 13, 6:43 AM
Unknown Object (File)
Mon, May 11, 2:20 AM
Unknown Object (File)
Sun, May 10, 2:12 PM
Unknown Object (File)
Sun, May 10, 2:07 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.