From patchwork Tue Nov 6 12:05:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balakrishna Godavarthi X-Patchwork-Id: 10670187 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 7976013A4 for ; Tue, 6 Nov 2018 12:05:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68BEC26255 for ; Tue, 6 Nov 2018 12:05:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C5572927F; Tue, 6 Nov 2018 12:05:54 +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 0DF7D26255 for ; Tue, 6 Nov 2018 12:05:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730815AbeKFVan (ORCPT ); Tue, 6 Nov 2018 16:30:43 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:52074 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbeKFVam (ORCPT ); Tue, 6 Nov 2018 16:30:42 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 190CF60B7A; Tue, 6 Nov 2018 12:05:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541505949; bh=f2vsGCrqV2dWHoMY3RT2mpv+RFW38Gde5kOkwGwavd4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LI3Ry9XgzS9ZC+P5xacSCMEmIULNpV+yE+EOvjB+S8NRzYjK38Hc/f6WppgC8lRU/ xE5kAYOM6WQTH2tkZido06uonLJkAhuuiKkdr5zZoe97kwz9rJYYN1SnMp9yNQlytm bqfuwjcxqh4uZVNi+FYxHlFgdJzB1nDLOyt7K6Jg= 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 B72BF60B62; Tue, 6 Nov 2018 12:05:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541505948; bh=f2vsGCrqV2dWHoMY3RT2mpv+RFW38Gde5kOkwGwavd4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j76rsqNgzdzSfsY8kqD0XBbIylLXNhoNgvIRE1wVV0JC3yrIXevafBQzzYQt7SSxF AidM/jQZqQxVmNNViZ+LAGZF8PtuPzyLZbwxPvdrZG4YkTh1RwisrmjNHFNoAw4XJy PQ7tAFi5CDc1lggFRvBB6RHzCqFFTqgeRnea3snE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B72BF60B62 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 Cc: mka@chromium.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, hemantg@codeaurora.org, linux-arm-msm@vger.kernel.org, Balakrishna Godavarthi Subject: [PATCH v1 3/4] Bluetooth: hci_qca: clear HCI_QUIRK_RESET_ON_CLOSE flag Date: Tue, 6 Nov 2018 17:35:27 +0530 Message-Id: <20181106120528.30342-4-bgodavar@codeaurora.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181106120528.30342-1-bgodavar@codeaurora.org> References: <20181106120528.30342-1-bgodavar@codeaurora.org> 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 During hci down we are sending reset command to chip, which is not required for wcn3990, as hdev->shutdown() will turn off the regulators. Signed-off-by: Balakrishna Godavarthi --- drivers/bluetooth/hci_qca.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 8301663f0004..97b57e0f4725 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -1190,6 +1190,7 @@ static int qca_setup(struct hci_uart *hu) */ set_bit(HCI_QUIRK_NON_PERSISTENT_SETUP, &hdev->quirks); set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hdev->quirks); + clear_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks); hu->hdev->shutdown = qca_power_off; ret = qca_wcn3990_init(hu); if (ret)