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=1796437074; b=vj8nuEJXlcTtQbuRZRtcb8w36AdrCmnWph0T27QH8HcaMSSLNgZuZxx7sAwhMx15TgP8 MkKRSRcpOB8sugc7Uq0/LA+k1Cxtj2bRXX4brQEKOPw4ZPZbc3y50bovHhLCZ5XQmo2ni bPBNEnr8iuEFm50puFRvHfw+Dk4c8/NNtgA2B0yX8CJlBoySQLLk7L7jz7B7DUSuqbX3e 9EvXmN3OkiCDlEoU2Q8toODvWdGmdEBneB0FWeuAA8Z0y3Mke4xsMcW9bO4xFqgOAHtEf L92aocPaGFzH7Na/x4nBu/Eyk/ELLo8l/PLaXAA9ZzAK72sKQgJ2b53NZLDU7Jbq0Og== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796437074; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=kGqXyjbWXo0dxJ1tAFON51sbhzPfPSIyB3GZ5RAr3OU=; b=rs7F6JcXeZtb1AWUnPAacAOhHmI9RM1HhwQrCLMLb1KVHlO3BlW21h1eFPWtQtLXgi6o JxQ21gkrK6EwDhHmUttBRt1Wbj8AHHq0uiKkFOk9nokYD+GtoB6ppop5CahO3JoPG64VY srE6BvJe7L/uE54x2VmGev6D3pbf8+YNJ7rk5AttwM971Vy+lFy0XZGxKNfgkh+VA7h5z yE6IY2NE5GlCCsFxKaT/j2mNv9uNRtRGDsdeIksBRr0mbnx260+TsuVYwQl/FEtivp70Z dAeaiLDCaQmZ3EPobfc9AtVM3YtLoQfNH3+Ruhm2Ua1kBNR0SdjzJg9dbWoBPIfDO4A== 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=UyWXFeI8; 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 6F401606A322 for ; Sat, 5 Dec 2026 02:17:54 +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=UyWXFeI8 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAD2A1F00936; Sat, 5 Dec 2026 02:17:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796437074; bh=kGqXyjbWXo0dxJ1tAFON51sbhzPfPSIyB3GZ5RAr3OU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=UyWXFeI8aREYLwspDbYK8vKyD3uklzrdaEb2YuH3s2d1sxNkbOqyrvnbuqXnHX3DW WS5lc8pxpT5Jj5zDe+Wizmxl8PO3HEaZeklqfT5C6mZOKK08hdqDEvRST8X/Vjp3ZZ TQBjKuvZPeekr3ndw/jKJ6sDL4oLRQAAmrXP7nSRujplB7+2DmRqFF0urztRGsFb5q 8sMN9+9PmodHuffFXl5XDAEcvshZIK3jxfUB/cu+qdS15+8MV0y9dZ3226CN4g1bs/ bjZtYoTD9Oz/tcK0OUCntMuVr1/GiFCGtRPNhqtiES2/I1FT+0W8urwBW3GHdnrfIA bzGCBbJZDWkXg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 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: <20261205015945.1695359-3-xiaqinghuan@mail.ustc.edu.cn> References: <20261205015945.1695359-1-xiaqinghuan@mail.ustc.edu.cn> <20261205015945.1695359-3-xiaqinghuan@mail.ustc.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 02:17:52 +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 2 potential issues to consider: - [High] Bluetooth: hci_qca: WCN7861 8 Mbps max-speed silently mapped to 115200 bps - [Medium] Bluetooth: hci_qca: WCN7861 falls back to WCN7850 firmware in qca_uart_setup() -- commit 2194e250fb59f2883c19b620ae0e9cc9454f43b9 Author: Qianhui Xu Bluetooth: hci_qca: add WCN7861 This commit adds the "qcom,wcn7861-bt" compatible string to qca_bluetooth_of_match[] in hci_qca, 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 qca_uart_setup() to download WCN7850 firmware onto WCN7861 hardware? Commit "dt-bindings: Bluetooth: add schema for Qualcomm WCN7861" leaves firmware-name optional with minItems: 1, and qca_serdev_probe() ignores the return value of device_property_read_string_array(). If a devicetree omits firmware-name or provides only the NVM entry, qca_uart_setup() falls back to the QCA_WCN7850 defaults (qca/hmtbtfw%02x.tlv and hmtnv), breaking controller initialization. Should WCN7861 have its own soc_type with default firmware names, or should the binding and qca_serdev_probe() require both firmware-name entries? [Severity: High] Does qca_set_speed() desynchronize the UART baudrate when a WCN7861 devicetree sets max-speed =3D <8000000> as shown in the binding example? qca_get_baudrate_value() has no 8 Mbps entry and falls back to QCA_BAUDRATE_115200. qca_set_speed() then sets the controller to 115200 bps via qca_set_baudrate() and the host UART to 8000000 bps via host_set_baudrate(), so later commands in qca_uart_setup() time out. qca_setup() also passes QCA_BAUDRATE_115200 into qca_uart_setup(), which patches the NVM baudrate tag with 115200 instead of 8000000. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205015945.1695= 359-1-xiaqinghuan@mail.ustc.edu.cn?part=3D2