Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp965284pxk; Thu, 10 Sep 2020 03:32:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx74PAQVz4yh72bypS4zkCFB6GHZGn0k4LDnrmXQgvD/RPOYm36Z15iVMcbqFomA1tGsvrE X-Received: by 2002:a50:9f6f:: with SMTP id b102mr8429173edf.272.1599733969899; Thu, 10 Sep 2020 03:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599733969; cv=none; d=google.com; s=arc-20160816; b=Dzs1dD6tTn6FgeneL2mxf4pxAjfYnHBEGMeB630wizDk0Fe2egcxpawLs9EGwDVydx /wgrvtnurdXNOr+h4ZU6iofWZmoA5zeSdsNam+qwFqUb2oNlp8BVLzxHqiKvDjqGLpNz 27rI8eZnp+kkGzm7lUL3JWlGujo1ndPaJI3Q8i1NSKo7zI2L2yTGlW70apxXUcPP+mOl 7Tj6j3kwq14TmInmhEHNOH2PQ5YIGO6tc6fX/x4D5iCE4TxZFuuV2DMfOHZV2sQ4pzYl WMGK1X0qhjQRFK4kRIihW4EBrwEX884fUOVx/On9wz0rLoMwzOZPd3wKQRwbcrE8+BfZ IjxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=g2dUb4yNmSDj0eRv8Wul8m8DHXaX6AY7Xh3NeSr6o50=; b=pg9/WC/dhHsLT91qsHXcaRexbefaOsBmdqp0OKTLW4deV6wyHmrCeNZYLGHByGhVxT N8P/W43qqxAJuB/ixMIIEVRz+AJ39dYMKPeycxj1+Grrg1iBEb1CCmzFAsz5CU/O4rsr YrpkmFe2ucWouf+v01iW+fEbevyMipEa63O/jlbQcP6G1UxCi1rdEvRSzApI7j2G5Nlw LAQXY1j7mfud9QIOZrPk7z76zKqHtxJbHklIcMqwCMreQMW5BYJHwlC+2GEbWCAGZruE UqR3i5jGKnhbHhI3FmsylaVauSOCFO8gGzr+XANA4N8tz5JWmsWrHBe0wF5iP+z/BRhN eyiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u26si3217805edy.360.2020.09.10.03.32.26; Thu, 10 Sep 2020 03:32:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730099AbgIJKbQ (ORCPT + 99 others); Thu, 10 Sep 2020 06:31:16 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:15346 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725913AbgIJKbM (ORCPT ); Thu, 10 Sep 2020 06:31:12 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 10 Sep 2020 03:31:12 -0700 Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 10 Sep 2020 03:31:10 -0700 Received: from gubbaven-linux.qualcomm.com ([10.206.64.32]) by ironmsg01-blr.qualcomm.com with ESMTP; 10 Sep 2020 16:00:44 +0530 Received: by gubbaven-linux.qualcomm.com (Postfix, from userid 2365015) id B073B21993; Thu, 10 Sep 2020 16:00:45 +0530 (IST) From: Venkata Lakshmi Narayana Gubba 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, bgodavar@codeaurora.org, rjliao@codeaurora.org, hbandi@codeaurora.org, abhishekpandit@chromium.org, Venkata Lakshmi Narayana Gubba Subject: [RESEND v1 0/2] Close UART port if NON_PERSISTENT_SETUP is set Date: Thu, 10 Sep 2020 16:00:41 +0530 Message-Id: <1599733843-20311-1-git-send-email-gubbaven@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org When HCI_QUIRK_NON_PERSISTENT_SETUP is set by drivers, it indicates that BT SoC will be completely powered OFF during BT OFF. On next BT ON firmware must be downloaded again. Holding UART port open during BT OFF is draining the battery. Now during BT OFF, UART port is closed if qurik HCI_QUIRK_NON_PERSISTENT_SETUP is set by clearing HCI_UART_PROTO_READY proto flag. On next BT ON, UART port is opened if HCI_UART_PROTO_READY proto flag is cleared. Venkata Lakshmi Narayana Gubba (2): Bluetooth: hci_serdev: Close UART port if NON_PERSISTENT_SETUP is set Bluetooth: hci_qca: Remove duplicate power off in proto close drivers/bluetooth/hci_qca.c | 5 ++--- drivers/bluetooth/hci_serdev.c | 36 +++++++++++++++++++++++++++++++++--- 2 files changed, 35 insertions(+), 6 deletions(-) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation