From patchwork Thu Aug 8 08:56:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balakrishna Godavarthi X-Patchwork-Id: 11083657 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 322281398 for ; Thu, 8 Aug 2019 08:56:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21B6A286C0 for ; Thu, 8 Aug 2019 08:56:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 158C128A33; Thu, 8 Aug 2019 08:56:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7550286C0 for ; Thu, 8 Aug 2019 08:56:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731335AbfHHI4Z (ORCPT ); Thu, 8 Aug 2019 04:56:25 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:47432 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730994AbfHHI4Z (ORCPT ); Thu, 8 Aug 2019 04:56:25 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 01DAB60ACE; Thu, 8 Aug 2019 08:56:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565254584; bh=Y+2QB4aoSFsqaUPUgzBQ38gP8PQyfwGd5fA5HXDy7U0=; h=From:To:Cc:Subject:Date:From; b=KNzv1lscO7Af/3pEGUXX93EcSCYfsU+ICY7BZE1qvdP3x5o0A0/AQtk3Z/SAP2sLo oNG6zghA1f/8vICbrREIiW/ICzqbZ9K9AwIqOcPXeMQJc7TlQO1+4t5rei9F1/1FuN MMIhPy+hqLKT+NthcHmIp5+ouATCD78WCYn3S5Mk= Received: from bgodavar-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: bgodavar@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D40B4604D4; Thu, 8 Aug 2019 08:56:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565254582; bh=Y+2QB4aoSFsqaUPUgzBQ38gP8PQyfwGd5fA5HXDy7U0=; h=From:To:Cc:Subject:Date:From; b=YhCeaA/RPHlVcly8bEnUlJLRRFTU+gWoErOAazeJCn4aREC76NrozO0EjfrP+VALG ry54YFZdJdOaLieuOgw/cJE+9v09ocVMwQGJQKegtVDtKphsJ3f9GNMdGSDXCKPulu Z89ZOBJfjpI1dGzp84z0wPBFdxXQWWxtGvgMkfGc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D40B4604D4 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=bgodavar@codeaurora.org From: Balakrishna Godavarthi To: marcel@holtmann.org, johan.hedberg@gmail.com, mka@chromium.org Cc: linux-bluetooth@vger.kernel.org, hemantg@codeaurora.org, linux-arm-msm@vger.kernel.org, rjliao@codeaurora.org, c_hbandi@codeaurora.org, tientzu@chromium.org, Balakrishna Godavarthi Subject: [PATCH v2] Bluetooth: btqca: Reset download type to default Date: Thu, 8 Aug 2019 14:26:08 +0530 Message-Id: <20190808085608.18010-1-bgodavar@codeaurora.org> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Tested-by: Claire Chang Reviewed-by: Claire Chang --- 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: