Previously we were erroneously passing the device softc to acpi_stype_to_sstate in acpi_wake/run_sleep_prep instead of the ACPI bus device softc. Now, we pass the ACPI bus device softc when walking devices to prep for sleep/wake. Use the opportunity to pass the stype instead of the ACPI S-state to acpi_wake_prep_walk.
PR: 289634
Sponsored by: The FreeBSD Foundation