Skip to content

Commit affd840

Browse files
pundiramitgregkh
authored andcommitted
Bluetooth: hci_qca: Avoid missing rampatch failure with userspace fw loader
commit 7dc5fe0 upstream. 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 <loic.poulain@linaro.org> CC: Nicolas Dechesne <nicolas.dechesne@linaro.org> CC: Marcel Holtmann <marcel@holtmann.org> CC: Johan Hedberg <johan.hedberg@gmail.com> CC: Stable <stable@vger.kernel.org> Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3ffecef commit affd840

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎drivers/bluetooth/hci_qca.c‎

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

941947
/* Setup bdaddr */

0 commit comments

Comments
 (0)