diff mbox series

[v2] Bluetooth: btqca: Reset download type to default

Message ID 20190808085608.18010-1-bgodavar@codeaurora.org (mailing list archive)
State Not Applicable, archived
Delegated to: Andy Gross
Headers show
Series [v2] Bluetooth: btqca: Reset download type to default | expand

Commit Message

Balakrishna Godavarthi Aug. 8, 2019, 8:56 a.m. UTC
This patch will reset the download flag to default value
before retrieving the download mode type.

Fixes: 32646db8cc28 ("Bluetooth: btqca: inject command complete event during fw download")
Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
---
v2: 
  * add fix tag.

---
 drivers/bluetooth/btqca.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Claire Chang Aug. 8, 2019, 9:11 a.m. UTC | #1
Tested-by: Claire Chang <tientzu@chromium.org>
Reviewed-by: Claire Chang <tientzu@chromium.org>

Thanks!


On Thu, Aug 8, 2019 at 4:56 PM Balakrishna Godavarthi
<bgodavar@codeaurora.org> wrote:
>
> This patch will reset the download flag to default value
> before retrieving the download mode type.
>
> Fixes: 32646db8cc28 ("Bluetooth: btqca: inject command complete event during fw download")
> Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
> ---
> v2:
>   * add fix tag.
>
> ---
>  drivers/bluetooth/btqca.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c
> index 2221935fac7e..9fb247c10855 100644
> --- a/drivers/bluetooth/btqca.c
> +++ b/drivers/bluetooth/btqca.c
> @@ -140,6 +140,7 @@ static void qca_tlv_check_data(struct rome_config *config,
>         BT_DBG("Length\t\t : %d bytes", length);
>
>         config->dnld_mode = ROME_SKIP_EVT_NONE;
> +       config->dnld_type = ROME_SKIP_EVT_NONE;
>
>         switch (config->type) {
>         case TLV_TYPE_PATCH:
> --
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> a Linux Foundation Collaborative Project
>
Marcel Holtmann Aug. 12, 2019, 5:08 p.m. UTC | #2
Hi Balakrishna,

> This patch will reset the download flag to default value
> before retrieving the download mode type.
> 
> Fixes: 32646db8cc28 ("Bluetooth: btqca: inject command complete event during fw download")
> Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
> ---
> v2: 
>  * add fix tag.
> 
> ---
> drivers/bluetooth/btqca.c | 1 +
> 1 file changed, 1 insertion(+)

patch has been applied to bluetooth-stable tree.

Regards

Marcel
diff mbox series

Patch

diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c
index 2221935fac7e..9fb247c10855 100644
--- a/drivers/bluetooth/btqca.c
+++ b/drivers/bluetooth/btqca.c
@@ -140,6 +140,7 @@  static void qca_tlv_check_data(struct rome_config *config,
 	BT_DBG("Length\t\t : %d bytes", length);
 
 	config->dnld_mode = ROME_SKIP_EVT_NONE;
+	config->dnld_type = ROME_SKIP_EVT_NONE;
 
 	switch (config->type) {
 	case TLV_TYPE_PATCH: