mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Bartosz Golaszewski <brgl@kernel.org>,
	Marcel Holtmann <marcel@holtmann.org>,
	Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	Jeff Johnson <jjohnson@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Manivannan Sadhasivam <mani@kernel.org>,
	Vinod Koul <vkoul@kernel.org>,
	Balakrishna Godavarthi <quic_bgodavar@quicinc.com>,
	Matthias Kaehlcke <mka@chromium.org>
Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org,
	linux-wireless@vger.kernel.org, ath10k@lists.infradead.org,
	linux-pm@vger.kernel.org, Krzysztof Kozlowski <krzk@kernel.org>
Subject: Re: [PATCH 03/14] Bluetooth: qca: fix ROM version reading on WCN3998 chips
Date: Wed, 31 Dec 2025 13:04:56 +0100	[thread overview]
Message-ID: <dd020ebb-d005-4322-9321-b09199156a9c@oss.qualcomm.com> (raw)
In-Reply-To: <20251231-wcn3990-pwrctl-v1-3-1ff4d6028ad5@oss.qualcomm.com>

On 12/31/25 12:35 AM, Dmitry Baryshkov wrote:
> WCN3998 uses a bit different format for rom version:
> 
> [    5.479978] Bluetooth: hci0: setting up wcn399x
> [    5.633763] Bluetooth: hci0: QCA Product ID   :0x0000000a
> [    5.645350] Bluetooth: hci0: QCA SOC Version  :0x40010224
> [    5.650906] Bluetooth: hci0: QCA ROM Version  :0x00001001
> [    5.665173] Bluetooth: hci0: QCA Patch Version:0x00006699
> [    5.679356] Bluetooth: hci0: QCA controller version 0x02241001
> [    5.691109] Bluetooth: hci0: QCA Downloading qca/crbtfw21.tlv
> [    6.680102] Bluetooth: hci0: QCA Downloading qca/crnv21.bin
> [    6.842948] Bluetooth: hci0: QCA setup on UART is completed
> 
> Fixes: 523760b7ff88 ("Bluetooth: hci_qca: Added support for WCN3998")
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> ---
>  drivers/bluetooth/btqca.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c
> index 7c958d6065be..86a48d009d1b 100644
> --- a/drivers/bluetooth/btqca.c
> +++ b/drivers/bluetooth/btqca.c
> @@ -804,6 +804,8 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
>  	 */
>  	if (soc_type == QCA_WCN3988)
>  		rom_ver = ((soc_ver & 0x00000f00) >> 0x05) | (soc_ver & 0x0000000f);
> +	else if (soc_type == QCA_WCN3998)
> +		rom_ver = ((soc_ver & 0x0000f000) >> 0x07) | (soc_ver & 0x0000000f);
>  	else
>  		rom_ver = ((soc_ver & 0x00000f00) >> 0x04) | (soc_ver & 0x0000000f);

This looks like rom_ver is essentially maj|min or so with min = 4lsb and
maj being a couple bits up.. no big deal in the end, but this could be
expressed more nicely

Konrad

  reply	other threads:[~2025-12-31 12:05 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-30 23:35 [PATCH 00/14] power: sequencing: extend WCN driver to support WCN399x device Dmitry Baryshkov
2025-12-30 23:35 ` [PATCH 01/14] regulator: dt-bindings: qcom,qca6390-pmu: describe PMUs on WCN39xx Dmitry Baryshkov
2026-01-02 10:54   ` Bartosz Golaszewski
2026-01-02 12:23   ` Krzysztof Kozlowski
2025-12-30 23:35 ` [PATCH 02/14] Bluetooth: qca: enable pwrseq support for WCN39xx devices Dmitry Baryshkov
2026-01-02 10:57   ` Bartosz Golaszewski
2025-12-30 23:35 ` [PATCH 03/14] Bluetooth: qca: fix ROM version reading on WCN3998 chips Dmitry Baryshkov
2025-12-31 12:04   ` Konrad Dybcio [this message]
2025-12-31 15:02     ` Dmitry Baryshkov
2025-12-30 23:35 ` [PATCH 04/14] wifi: ath10k: snoc: support powering on the device via pwrseq Dmitry Baryshkov
2026-01-02 11:07   ` Bartosz Golaszewski
2026-01-02 15:09     ` Dmitry Baryshkov
2026-01-02 17:06       ` Bartosz Golaszewski
2026-01-02 23:24         ` Dmitry Baryshkov
2026-01-05 12:46           ` Bartosz Golaszewski
2025-12-30 23:35 ` [PATCH 05/14] power: sequencing: qcom-wcn: add support for WCN39xx Dmitry Baryshkov
2026-01-02 11:02   ` Bartosz Golaszewski
2025-12-30 23:35 ` [PATCH 06/14] arm64: dts: qcom: qrb4210-rb2: Fix UART3 wakeup IRQ storm Dmitry Baryshkov
2025-12-31 12:07   ` Konrad Dybcio
2025-12-30 23:35 ` [PATCH 07/14] arm64: dts: qcom: sdm845-db845c: drop CS from SPIO0 Dmitry Baryshkov
2025-12-31 12:07   ` Konrad Dybcio
2025-12-30 23:35 ` [PATCH 08/14] arm64: dts: qcom: sdm845-db845c: specify power for WiFi CH1 Dmitry Baryshkov
2025-12-31 12:09   ` Konrad Dybcio
2025-12-31 16:19     ` Dmitry Baryshkov
2025-12-31 16:20       ` Konrad Dybcio
2025-12-30 23:35 ` [PATCH 09/14] arm64: dts: qcom: sm8150: add uart13 Dmitry Baryshkov
2025-12-31 12:10   ` Konrad Dybcio
2025-12-30 23:36 ` [PATCH 10/14] arm64: dts: qcom: qrb2210-rb1: describe WiFi/BT properly Dmitry Baryshkov
2025-12-31 12:17   ` Konrad Dybcio
2026-01-02 10:51   ` Bartosz Golaszewski
2025-12-30 23:36 ` [PATCH 11/14] arm64: dts: qcom: qrb4210-rb2: " Dmitry Baryshkov
2025-12-31 12:18   ` Konrad Dybcio
2026-01-02 10:33   ` Bartosz Golaszewski
2025-12-30 23:36 ` [PATCH 12/14] arm64: dts: qcom: sda660-ifc6560: " Dmitry Baryshkov
2025-12-31 12:19   ` Konrad Dybcio
2025-12-31 16:20     ` Dmitry Baryshkov
2026-01-02 10:52   ` Bartosz Golaszewski
2025-12-30 23:36 ` [PATCH 13/14] arm64: dts: qcom: sdm845-db845c: " Dmitry Baryshkov
2025-12-31 12:20   ` Konrad Dybcio
2026-01-02 10:53   ` Bartosz Golaszewski
2025-12-30 23:36 ` [PATCH 14/14] arm64: dts: qcom: sm8150-hdk: " Dmitry Baryshkov
2025-12-31 12:16   ` Konrad Dybcio
2025-12-31 17:12     ` Dmitry Baryshkov
2025-12-31 17:13       ` Konrad Dybcio
2026-01-02 10:51   ` Bartosz Golaszewski
2026-01-02 14:43 ` [PATCH 00/14] power: sequencing: extend WCN driver to support WCN399x device Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dd020ebb-d005-4322-9321-b09199156a9c@oss.qualcomm.com \
    --to=konrad.dybcio@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=ath10k@lists.infradead.org \
    --cc=brgl@kernel.org \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=jjohnson@kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=mani@kernel.org \
    --cc=marcel@holtmann.org \
    --cc=mka@chromium.org \
    --cc=quic_bgodavar@quicinc.com \
    --cc=robh@kernel.org \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®