Check management capabilities before trying to attach temperature sensors,
authorjmatthew <jmatthew@openbsd.org>
Wed, 20 Jan 2021 10:04:26 +0000 (10:04 +0000)
committerjmatthew <jmatthew@openbsd.org>
Wed, 20 Jan 2021 10:04:26 +0000 (10:04 +0000)
commit9d36f03c9bcb6594db96e44aeb8fc54a24f00a77
tree8164e8b28fa689ed6d83b6cc5f4a9bd5a040fa7a
parentf553ed3cbd0a46607da126d798f48f798014a836
Check management capabilities before trying to attach temperature sensors,
avoiding an unhelpful error message if the card's firmware doesn't expose
the sensor registers.

tested by chris@, who saw the unhelpful error message
ok dlg@
sys/dev/pci/if_mcx.c