Page MenuHomeFreeBSD

acpi_spmc(4): Small probe improvements/fixes
ClosedPublic

Authored by olce on Fri, Apr 17, 7:52 PM.
Tags
None
Referenced Files
F153308144: D56483.id.diff
Mon, Apr 20, 9:30 AM
Unknown Object (File)
Sun, Apr 19, 5:09 PM
Unknown Object (File)
Sun, Apr 19, 3:57 PM
Unknown Object (File)
Sat, Apr 18, 2:11 PM
Unknown Object (File)
Sat, Apr 18, 5:42 AM
Unknown Object (File)
Sat, Apr 18, 5:26 AM
Unknown Object (File)
Sat, Apr 18, 5:25 AM
Unknown Object (File)
Sat, Apr 18, 4:42 AM
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.Fri, Apr 17, 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.Fri, Apr 17, 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.Fri, Apr 17, 8:25 PM
This revision was automatically updated to reflect the committed changes.