cc9: standby: do not disable bluetooth on suspend if power is on

If the power domain is kept on in suspend, do not disable the Bluetooth as
no new initialization is needed.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2024-11-19 11:08:09 +01:00
parent 6b5402e3a1
commit 43451b06a8
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ wifi_actions_needed() {
}
bt_actions_needed() {
systemctl -q is-active bluetooth-init
systemctl -q is-active bluetooth-init && [ ! -e "/sys/firmware/devicetree/base/soc@0/bus@42800000/mmc@428b0000/keep-power-in-suspend" ]
}
if [ "${1}" = "pre" ]; then