* [PATCH] Bluetooth: hci_qca: Avoid missing rampatch failure with userspace fw loader
@ 2018-04-16 6:40 Amit Pundir
2018-04-18 7:33 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Amit Pundir @ 2018-04-16 6:40 UTC (permalink / raw)
To: linux-kernel, linux-bluetooth
Cc: dragonboard, Loic Poulain, Nicolas Dechesne, Marcel Holtmann,
Johan Hedberg, Stable
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>
---
drivers/bluetooth/hci_qca.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index 05ec530b8a3a..330e9b29e145 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -935,6 +935,12 @@ static int qca_setup(struct hci_uart *hu)
} else if (ret == -ENOENT) {
/* No patch/nvm-config found, run with original fw/config */
ret = 0;
+ } else if (ret == -EAGAIN) {
+ /*
+ * Userspace firmware loader will return -EAGAIN in case no
+ * patch/nvm-config is found, so run with original fw/config.
+ */
+ ret = 0;
}
/* Setup bdaddr */
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Bluetooth: hci_qca: Avoid missing rampatch failure with userspace fw loader
2018-04-16 6:40 [PATCH] Bluetooth: hci_qca: Avoid missing rampatch failure with userspace fw loader Amit Pundir
@ 2018-04-18 7:33 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2018-04-18 7:33 UTC (permalink / raw)
To: Amit Pundir
Cc: LKML, Bluez mailing list, dragonboard, Loic Poulain,
Nicolas Dechesne, Johan Hedberg, Stable
Hi Amit,
> 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>
> ---
> drivers/bluetooth/hci_qca.c | 6 ++++++
> 1 file changed, 6 insertions(+)
patch has been applied to bluetooth-next tree.
Regards
Marcel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-18 7:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-16 6:40 [PATCH] Bluetooth: hci_qca: Avoid missing rampatch failure with userspace fw loader Amit Pundir
2018-04-18 7:33 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).