An ACPI device needs to be both present and enabled for it to function.
authorkettenis <kettenis@openbsd.org>
Wed, 26 Jan 2022 14:39:07 +0000 (14:39 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 26 Jan 2022 14:39:07 +0000 (14:39 +0000)
commite0cbaa99ef9f0e613f7dc8c17a746d9b022ecfa2
tree85794463818a53b14bb1d77040583da3ce73c309
parent8f17a7016a60868228c9d3c9fe4f2a2a38813dcc
An ACPI device needs to be both present and enabled for it to function.
So only attempt to attach hardware that has both bits enabled.  This fixes
an issue where com(4) would attach for a disabled serial port leading to
misdetection of the hardware variant and a subsequent hang when /etc/rc
runs ttyflags -a.

ok anton@, deraadt@
sys/dev/acpi/acpi.c