Skip to content

Commit 7dc5fe0

Browse files
pundiramitholtmann
authored andcommitted
Bluetooth: hci_qca: Avoid missing rampatch failure with userspace fw loader
AOSP use userspace firmware loader to load firmwares, which will return -EAGAIN in case qca/rampatch_00440302.bin is not found. Since there is no rampatch for dragonboard820c QCA controller revision, just make it work as is. CC: Loic Poulain <[email protected]> CC: Nicolas Dechesne <[email protected]> CC: Marcel Holtmann <[email protected]> CC: Johan Hedberg <[email protected]> CC: Stable <[email protected]> Signed-off-by: Amit Pundir <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 61a1ecf commit 7dc5fe0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/bluetooth/hci_qca.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,12 @@ static int qca_setup(struct hci_uart *hu)
935935
} else if (ret == -ENOENT) {
936936
/* No patch/nvm-config found, run with original fw/config */
937937
ret = 0;
938+
} else if (ret == -EAGAIN) {
939+
/*
940+
* Userspace firmware loader will return -EAGAIN in case no
941+
* patch/nvm-config is found, so run with original fw/config.
942+
*/
943+
ret = 0;
938944
}
939945

940946
/* Setup bdaddr */

0 commit comments

Comments
 (0)