From patchwork Wed Sep 19 15:21:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balakrishna Godavarthi X-Patchwork-Id: 10606031 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 C1B7E5A4 for ; Wed, 19 Sep 2018 15:21:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2BC32C560 for ; Wed, 19 Sep 2018 15:21:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B66A42C59A; Wed, 19 Sep 2018 15:21:25 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 62B282C590 for ; Wed, 19 Sep 2018 15:21:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732405AbeISU7s (ORCPT ); Wed, 19 Sep 2018 16:59:48 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60106 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732326AbeISU7s (ORCPT ); Wed, 19 Sep 2018 16:59:48 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6ED5E60C54; Wed, 19 Sep 2018 15:21:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537370483; bh=fWNsE9Q45px4YHyiXaY2ZIfd0l6k0BII1sBT8WV9GLA=; h=From:To:Cc:Subject:Date:From; b=BqO8R/W3CjfMPMLWHUFSf/IMS3hcwWEn8W0iR6UQhx1NUQxV9QqriPoURdbS1MK4v knXvnTy5UzZT4lMs9U+bzbpH4GvXP1d7MRSXQLIGH2ZDSO24mvjivgRH8BphKKEYA9 7vmhhB11KeCLkTs5ZKYUUdMQt2rC4u8ZmGpWde78= 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 3A8DD60BF5; Wed, 19 Sep 2018 15:21:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537370482; bh=fWNsE9Q45px4YHyiXaY2ZIfd0l6k0BII1sBT8WV9GLA=; h=From:To:Cc:Subject:Date:From; b=k8YXY1cMNz58+qt2dMrmJTooY5P+xV+qzDEX52ORQBipoWU9ev5TSIt8YSCNWBnYC xKRsDpeh9wS5KzCltTWY5NjkUkuI3DZbWgc3iUPRwtrpgERiiAPIZQyp1nWhTEcyGi 3A/NaNby4OEgC7k/qVryV/Fu2foOYPPjUEJNPNOI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3A8DD60BF5 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 v2 0/1] Cold on & off support for Qualcomm BT chip wcn3990 Date: Wed, 19 Sep 2018 20:51:12 +0530 Message-Id: <20180919152113.7611-1-bgodavar@codeaurora.org> X-Mailer: git-send-email 2.18.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 power off regulators while hci0 down and turn on them back on hci0 up. Every time we power off we call proto specific close function, so that we will free the memory of Qualcomm BT specific buffers. Will call proto open to assign the memory and turn on the regulators, before calling qualcomm setup. v2: * Removed vendor specific hdev->open and close functions. * Added hdev->shutdown function to turn off the regs. v1: * initial patch. Balakrishna Godavarthi (1): Bluetooth: hci_qca: Add poweroff support during hci down for wcn3990 drivers/bluetooth/hci_qca.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+)