Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7374476ybl; Wed, 15 Jan 2020 21:41:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzzCsqvJYOawJg/MpFrxxIob0fpJBKy2feDvJ9DYWk3n1970e64FxhKYfnPUE3UFrn5DSQX X-Received: by 2002:a05:6808:b1c:: with SMTP id s28mr2941130oij.2.1579153303866; Wed, 15 Jan 2020 21:41:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579153303; cv=none; d=google.com; s=arc-20160816; b=VjM2xlj5psNBDOhjniHpJoMNPiASqLq/RezMrNewY26I0z2U2892jp92aLoeDuQGHy ANsqoNE7MT/BZLvN76fCTX1jxJqb9KuSO6vRzk3kafOGWrTyg8B+fdTd60sJniuV8eCe 7P8EFFMjImv/seBiu4tSFp/XgT02CCPQw3J9KJodyRO8SaF1n+4lv1XjMG8l3ErazQmp JZShQSV5qwy2xzMGGfXsFSk8PuWCtltcannNKPHgIc0iGnS8aUhQpX2z0nOY/kWSG3c5 O2LWboHGAR3a+MNI1c0FLBqzZoiNJff62zyNB9elAzl4nSm9VeJYMMSKOCbGOxznhARY g/cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=A4DMDVe8gz6i0Ixs1QZn3C0F1IEBFUvudC+ok0BgVvo=; b=DnOB7qSMlfBu2rJTAItFssO+Sv6uaHDIc/ekhUYIwoP6sP58euTBE4l7OdUSaIb6bG 4RTgkRtQP2kFQOYBxDaNPprpyH9c30z9JJ6NF5ywa2Zq0L4g9C+DZutd5snEjKK+nb0C z9NLpBkzC/7rS7jHk3kmLjgpcpBHYBSRlngoN6lbqFcHIjcBFXV7u8txXRDP6tkvHTlw NF3xRCwNjF8GCPGH4zeDSA/9HTYC/0m9UWPQjxh5jGQQfJGCgzyVxYI4JlA2KMi5cVS3 X580H/js3ptHsBy4WPxoGHh5CI6Bngvt4kDccDtv6Kj/lMvJpELhY7nv/MfjMm+rxFWC 6y2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3si11309031oic.108.2020.01.15.21.41.16; Wed, 15 Jan 2020 21:41:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726924AbgAPFbv (ORCPT + 99 others); Thu, 16 Jan 2020 00:31:51 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:42841 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726278AbgAPFbv (ORCPT ); Thu, 16 Jan 2020 00:31:51 -0500 Received: from marcel-macpro.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 271C0CECF6; Thu, 16 Jan 2020 06:41:07 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: [PATCH v5] Bluetooth: hci_qca: Enable power off/on support during hci down/up for QCA Rome From: Marcel Holtmann In-Reply-To: <20200116032254.20549-1-rjliao@codeaurora.org> Date: Thu, 16 Jan 2020 06:31:48 +0100 Cc: Johan Hedberg , Matthias Kaehlcke , Linux Kernel Mailing List , Bluez mailing list , MSM , Balakrishna Godavarthi , hemantg@codeaurora.org Content-Transfer-Encoding: 7bit Message-Id: References: <20191225060317.5258-1-rjliao@codeaurora.org> <20200116032254.20549-1-rjliao@codeaurora.org> To: Rocky Liao X-Mailer: Apple Mail (2.3608.40.2.2.4) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Rocky, > This patch registers hdev->shutdown() callback and also sets > HCI_QUIRK_NON_PERSISTENT_SETUP for QCA Rome. It will power-off the BT chip > during hci down and power-on/initialize the chip again during hci up. As > wcn399x already enabled this, this patch also removed the callback register > and QUIRK setting in qca_setup() for wcn399x and uniformly do this in the > probe() routine. > > Signed-off-by: Rocky Liao > --- > > Changes in v2: None > Changes in v3: > -moved the quirk and callback register to probe() > Changes in v4: > -rebased the patch with latest code > -moved the quirk and callback register to probe() for wcn399x > -updated commit message > Changed in v5: > -removed the "out" label and return err when fails > > drivers/bluetooth/hci_qca.c | 20 +++++++++++--------- > 1 file changed, 11 insertions(+), 9 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel