bluetooth-init: start driver load service before bluetooth daemon

Revert to the previous used order for the bluetooth related
services. First, load the driver and then execute the bluetooth
daemon. This is needed for two reasons:

  * The bluetooth daemon caches the MAC address. Loading the module before
    ensures the daemon caches the correct MAC.
  * The connectcore-demo server stops working if the bluetooth interface
    is unavailable when the server launches. This order ensures the demo
    works as expected.

This change also brings back the problem of the btnxpuart module unload
failure on reboot/suspend. The following commit adds a workaround for
the driver issue.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2024-09-27 14:02:34 +02:00
parent 570c057a59
commit 55f8ccadec
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
[Unit]
Description=Initialization of the IW612 bluetooth chip
ConditionPathIsDirectory=/proc/device-tree/bluetooth
After=systemd-udev-settle.service bluetooth.service
After=systemd-udev-settle.service
Before=bluetooth.service
[Service]
Type=oneshot