From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CDF1C33CB1 for ; Tue, 14 Jan 2020 13:55:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3DED824679 for ; Tue, 14 Jan 2020 13:55:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728809AbgANNzn (ORCPT ); Tue, 14 Jan 2020 08:55:43 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:57503 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726453AbgANNzn (ORCPT ); Tue, 14 Jan 2020 08:55:43 -0500 Received: from marcel-macpro.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 93D53CECDD; Tue, 14 Jan 2020 15:04:58 +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: Add qca_power_on() API to support both wcn399x and Rome power up From: Marcel Holtmann In-Reply-To: <20200113043020.9663-1-rjliao@codeaurora.org> Date: Tue, 14 Jan 2020 14:55:40 +0100 Cc: Johan Hedberg , Matthias Kaehlcke , Linux Kernel Mailing List , Bluez mailing list , linux-arm-msm@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20200107052601.32216-1-rjliao@codeaurora.org> <20200113043020.9663-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 adds a unified API qca_power_on() to support both wcn399x and > Rome power on. For wcn399x it calls the qca_wcn3990_init() to init the > regulators, and for Rome it pulls up the bt_en GPIO to power up the btsoc. > It also moves all the power up operation from hdev->open() to > hdev->setup(). > > Signed-off-by: Rocky Liao > Reviewed-by: Matthias Kaehlcke > --- > > Changes in v2: None > Changes in v3: > -moved all the power up operation from open() to setup() > -updated the commit message > Changes in v4: > -made a single call to qca_power_on() in setup() > Changes in v5: > -modified the debug log location > > drivers/bluetooth/hci_qca.c | 54 ++++++++++++++++++++++--------------- > 1 file changed, 33 insertions(+), 21 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel