bhnd(4): fix a few bugs in pwrctl/fixed-clock device support.
authorlandonf <landonf@FreeBSD.org>
Fri, 19 Jan 2018 21:58:48 +0000 (21:58 +0000)
committerlandonf <landonf@FreeBSD.org>
Fri, 19 Jan 2018 21:58:48 +0000 (21:58 +0000)
commitcfbe0c6679ffe6d76cbcf94536c75cf930b5702c
treeafac8dc93f5b4334ceb539d438906a2da730083b
parent80792d29e7065eda03baf97e605b4511f286e36f
bhnd(4): fix a few bugs in pwrctl/fixed-clock device support.

 - Do not panic on siba(4) detach when the bhnd(4) bus calls
   bhnd_get_pmu_info() on a PMU-less device.
 - Fix bhnd_pwrctl attach/detach on fixed-clock devices:
    - Treat bhnd_pwrctl_updateclk() as a no-op on fixed-clock devices.
    - Use bhnd_pwrctl_updateclk() to perform the appropriate clock
      transition on detach.

Sponsored by: The FreeBSD Foundation
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl.c
sys/dev/bhnd/siba/siba.c