Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp221114rdb; Tue, 5 Dec 2023 03:47:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEL165KYGvpVkrE6emVvBOQtp+vgVWjz4bBNlTp3wKrwS2mfmPEYTgzKOlvtcn4kBOyYUOk X-Received: by 2002:a05:6a20:4388:b0:18b:30d1:8140 with SMTP id i8-20020a056a20438800b0018b30d18140mr4658502pzl.6.1701776824622; Tue, 05 Dec 2023 03:47:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701776824; cv=none; d=google.com; s=arc-20160816; b=r6hbm4+3a6l5uRna8GVvnSk7JKODBL9XwLZTYbogV7zA2RiWvrppM/nL1mSq2JvYnh 4ceShgqqYU2vYnB1oDelMrMugPL+xwWEXAA2wNgSd4ZKYDWTEl81bwuF4s0JfJ4Hy1VX OZQ0mN/0J4Dk3t+fF0sVY3TlRxjGAjShj5F65fk7xO2bdRT4QxcteQqdXP4I9lNKe1G8 2NNe9nkZ/fVkthF5d1cDlMufJQswGhRDOhJBw9LkI5+CZl/C3wHjJBq/sxiZ82KkJcza JagFfjGI59gbL7ySQl3/+SkQMBBHIh1o41Ya13fipscFxgMCrxIP9gexuZJkRAMH0+Bw /ZpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cIIbT51pD5F/ECNevZUu6Ai+ZC3C65kOwieq4b/zLPw=; fh=q+WlckAdrZkQeWmi5qPrRY7KHuaZuov6RyS+o9hAP04=; b=WmsmM0Dsha4sDLh5JEl9DbTyNCLcsVOcCiPkwdxHvKkwTH2odbMfeczCw4VKTn6YX9 xJ7hgoN6qU2fSqJgnSOWPaSw31RNr/GjBG9qbINk4EEL/5CqnwhdCsnWIePAST3sOKF1 3WxdWbJsMqTErki3s/qSr0Bjea6quOGra1ulKqzws9QRyWm4lkZl628owkoZNkARU+L1 U8743N0WyV6f7SQyFEB2d8KAOznazmSNv+pxBUe5g3RxUaz9HCdhQD3DAPCUnEdZk67B 5ZRLKf4FuZkhg2jSuFzQNJZZfL7Qb+J2NqcecnvkR4I3zstpXu8BqXqD7zRhwynop4ha Q9jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dwluM7bJ; spf=pass (google.com: domain of linux-bluetooth+bounces-398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-398-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id fi27-20020a056a00399b00b006cc0219fc85si9577516pfb.252.2023.12.05.03.47.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 03:47:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dwluM7bJ; spf=pass (google.com: domain of linux-bluetooth+bounces-398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-398-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 345E9281677 for ; Tue, 5 Dec 2023 11:47:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFC81584CF; Tue, 5 Dec 2023 11:46:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dwluM7bJ" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E5B2697A3; Tue, 5 Dec 2023 11:46:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87BC6C433C8; Tue, 5 Dec 2023 11:46:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701776816; bh=/pO6pOloy1pC9HuVjzn7MuPfwdbOmMGzkM3HpUEuFbs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dwluM7bJoMJJMnJsHnMR88lmHEgvdB2NbOq2vUw6NMqvUWA7ki1dUcA9cb7DXTDzD C3ewA26Z6bLKMhfdAsJY0v4Mnr335G2bAhBAgw2e3FehNq+4kMRyaLanBm7cplYdDR /buDjuJYD0pD4dwD1gmkPTuVih/5GMup2FkKv5SYGNAm03nXxbQa9S3W9CGM8Klmka fCUlFGa7Yff8rnpoGbmmcvT5U+yXG5jZgkJZvrmAFXxXVD6sBkegBNGEbsu3kO3W+6 8DbNkldBeYlN0Hwst1pYOgi5/AMa4Gan4BlgRxbDdpZYMuy3eq9m7oahV952C6HOlr VxRtLLSzcL3Tg== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rATts-00005m-29; Tue, 05 Dec 2023 12:47:40 +0100 Date: Tue, 5 Dec 2023 12:47:40 +0100 From: Johan Hovold To: Bartosz Golaszewski Cc: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Alex Elder , Srini Kandagatla , Bjorn Andersson , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 2/2] Bluetooth: qca: run the power-on/off sequence for QCA6390 too Message-ID: References: <20231205110903.68898-1-brgl@bgdev.pl> <20231205110903.68898-2-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231205110903.68898-2-brgl@bgdev.pl> On Tue, Dec 05, 2023 at 12:09:03PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > The Bluetooth module on QCA6390 needs to be powered-on by enabling the > relevant regulators and driving the enable GPIO high. We can reuse the > power sequence for the WNC models. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/bluetooth/hci_qca.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c > index 7f25931a946e..351ba904c8c2 100644 > --- a/drivers/bluetooth/hci_qca.c > +++ b/drivers/bluetooth/hci_qca.c > @@ -1788,6 +1788,7 @@ static int qca_power_on(struct hci_dev *hdev) > case QCA_WCN6750: > case QCA_WCN6855: > case QCA_WCN7850: > + case QCA_QCA6390: > ret = qca_regulator_init(hu); > break; > > @@ -2137,6 +2138,7 @@ static void qca_power_shutdown(struct hci_uart *hu) > > case QCA_WCN6750: > case QCA_WCN6855: > + case QCA_QCA6390: > gpiod_set_value_cansleep(qcadev->bt_en, 0); > msleep(100); > qca_regulator_disable(qcadev); > @@ -2284,6 +2286,7 @@ static int qca_serdev_probe(struct serdev_device *serdev) > case QCA_WCN6750: > case QCA_WCN6855: > case QCA_WCN7850: > + case QCA_QCA6390: > qcadev->bt_power = devm_kzalloc(&serdev->dev, > sizeof(struct qca_power), > GFP_KERNEL); > @@ -2394,6 +2397,7 @@ static void qca_serdev_remove(struct serdev_device *serdev) > case QCA_WCN6750: > case QCA_WCN6855: > case QCA_WCN7850: > + case QCA_QCA6390: > if (power->vregs_on) { > qca_power_shutdown(&qcadev->serdev_hu); > break; These two patches should also be squashed into one. Makes no sense to separate them. Johan