bluetooth-init: ccimx6ul: validate FW was correctly loaded
Sporadically, the BT FW is uploaded but the interface is not functional as it is not up and its entries are not populated. Validate the FW was correctly set, if not, rely on the retry mechanism. https://onedigi.atlassian.net/browse/DEL-9006 Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
parent
5f3a9fd7da
commit
5451a0f4bc
|
|
@ -70,8 +70,11 @@ bluetooth_init() {
|
|||
if hciattach ttyBt qca ${BT_RATE:-3000000} -t30 ${BT_FLOW:-flow} unused ${BT_MACADDR} >${HCIATTACH_LOG} 2>&1; then
|
||||
# hciattach performs a reset to load the new firmware and needs some time to be ready
|
||||
sleep 1
|
||||
# Validate that FW was correcly loaded by checking if file exists
|
||||
if [ -f "/sys/kernel/debug/bluetooth/hci0/features" ]; then
|
||||
return
|
||||
fi
|
||||
fi
|
||||
sleep 1
|
||||
|
||||
if [ $RETRY -ge 3 ]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue