From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796447970; b=SWU8+G5qWRsYkCKaDI3kLoyg3wHPq0aLv/eV827BOMAriJztg93ym0eEHp1HlgOVTD/J tZVH8/8mOIzpxGvCh1TaxgJntI+zjqUpfaK2MiPk294W7tDYi0cgf6ZnLusAydbP5qIR2 JZ/3RDrlaO1+C1+cJ8a644HYwqh6eCOt9EvXSfZnbZl0fwkTB9GABCKTjgqitnuCCjbco GO/hA6zEZOOd/9cmAhkE/OyKCqDjkie2k4IE6aXzy0QDcu5SwkuiwoaDXbqRStscrqHis Gxt2JhcYJfRzBWRi0PRaWVe6xtO0vtsqEj/O+Yu1DqVbBuwHVGNrC7HL8i3xevwzfvw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796447970; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=sys2RqmJ4dYy03Kk0MGgvIfxQvwWG23s0U3JsbOsBVM=; b=kxKoAYkmz13WSLm3ZfB7+rZhV/RxVp4NQV3K9OXd6PesoZu2pe6+yi6khx/fF49UsMYW eyrQVY9tKJ5gObOYe6iyuyAClIGZ3nA4lgLFvy/zFOK/rMtmsuh9WCgESWvWcvaeWPxBF dpYtdv2/MTuYCtZcSmmTXzQbInm0Si9zhyd8KXPSJSpQ0Vtsey4Mb/eMgJA4cfRSzIFip Nv79ZXV6qpbs+e7aax29XuCHDy5SMJTsRc0m/yrgpfU01hfLrIfLItOoUkHdcWq+taxM6 fpv81uOzNfmMIiZdxzS1uzrNXjtbD9tkH53s0iLcVfDk2745EAqwFeI2JJk/MQC9qcw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=E8FV4Y9D; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDD43606A322 for ; Sat, 5 Dec 2026 05:19:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=E8FV4Y9D Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27EDC1F00936; Sat, 5 Dec 2026 05:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796447970; bh=sys2RqmJ4dYy03Kk0MGgvIfxQvwWG23s0U3JsbOsBVM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=E8FV4Y9DLZWiQoqQzbJGwKyUAEtp0SNIpuClDCZP8Z7aMVucccyKpXJA+Fu/yM5ds cz5CUsS3LKzPX7zzt5ktvEEghQmgjJ9wUPCju0+ejR4pIntqwm6K3uokLQlQMpk+Mf IZUOs94GnCb/I5/Gi0WeGjDHTCc1Z8Cf9hQ6XKGdLh4QShGKCz1Z+vX2KwtXlKeo9U CQQNvuqaPx8v1Pzg4gdOvlSMyyslAvrKvc45hQcxW17gWzyngRD9rNWJtS3N3FKNe9 AASY+jjCCzZZ+pKrW7Gce57ra9BwwCCD2NzmsN+Y2Iy9fHaBQ8g6+9OtU16T0pVS8w CxsY/1awUPK8Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 2/2] Bluetooth: hci_qca: add WCN7861 Reply-To: sashiko-reviews@lists.linux.dev To: "Qianhui Xu" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261205050048.2994538-3-xiaqinghuan@mail.ustc.edu.cn> References: <20261205050048.2994538-1-xiaqinghuan@mail.ustc.edu.cn> <20261205050048.2994538-3-xiaqinghuan@mail.ustc.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 05:19:29 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] Bluetooth: hci_qca: WCN7861 falls back to WCN7850 firmware in qca_uart_setup() -- commit 5a874947a7ac653b0c540f9dcf6826f936bbdbac Author: Qianhui Xu Bluetooth: hci_qca: add WCN7861 This commit adds a devicetree match entry for qcom,wcn7861-bt to the QCA serdev driver, reusing qca_soc_data_wcn7850. > diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c > index d693e28427251..9ef4362e9406b 100644 > --- a/drivers/bluetooth/hci_qca.c > +++ b/drivers/bluetooth/hci_qca.c > @@ -2831,6 +2831,7 @@ static const struct of_device_id qca_bluetooth_of_m= atch[] =3D { > { .compatible =3D "qcom,wcn6750-bt", .data =3D &qca_soc_data_wcn6750}, > { .compatible =3D "qcom,wcn6855-bt", .data =3D &qca_soc_data_wcn6855}, > { .compatible =3D "qcom,wcn7850-bt", .data =3D &qca_soc_data_wcn7850}, > + { .compatible =3D "qcom,wcn7861-bt", .data =3D &qca_soc_data_wcn7850}, > { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(of, qca_bluetooth_of_match); [Severity: Medium] Can reusing qca_soc_data_wcn7850 cause WCN7861 to load WCN7850 firmware? firmware-name is optional in qcom,wcn7861-bt.yaml (and the common binding allows a single entry), and qca_serdev_probe() leaves omitted entries NULL. qca_uart_setup() then falls back to QCA_WCN7850 defaults (qca/hmtbtfw%02x.t= lv and hmtnv), loading incompatible WCN7850 firmware onto WCN7861 hardware. Relying on hardcoded firmware-name entries in the device tree also bypasses ROM-version and board-ID selection in qca_get_nvm_name_by_board(). qca_setup() also logs "setting up wcn7850" when initializing WCN7861. Should WCN7861 get its own QCA_WCN7861 soc_type with WCN7861 firmware prefixes and soc_name, or enforce both firmware-name entries in the binding and probe? --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205050048.2994= 538-1-xiaqinghuan@mail.ustc.edu.cn?part=3D2