Skip to content

Commit ba8f359

Browse files
Loic Poulainholtmann
authored andcommitted
Bluetooth: hci_qca: Avoid setup failure on missing rampatch
Assuming that the original code idea was to enable in-band sleeping only if the setup_rome method returns succes and run in 'standard' mode otherwise, we should not return setup_rome return value which makes qca_setup fail if no rampatch/nvm file found. This fixes BT issue on the dragonboard-820C p4 which includes the following QCA controller: hci0: Product:0x00000008 hci0: Patch :0x00000111 hci0: ROM :0x00000302 hci0: SOC :0x00000044 Since there is no rampatch for this controller revision, just make it work as is. Signed-off-by: Loic Poulain <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 1313f05 commit ba8f359

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/bluetooth/hci_qca.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,9 @@ static int qca_setup(struct hci_uart *hu)
932932
if (!ret) {
933933
set_bit(STATE_IN_BAND_SLEEP_ENABLED, &qca->flags);
934934
qca_debugfs_init(hdev);
935+
} else if (ret == -ENOENT) {
936+
/* No patch/nvm-config found, run with original fw/config */
937+
ret = 0;
935938
}
936939

937940
/* Setup bdaddr */

0 commit comments

Comments
 (0)