Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6571270rwr; Mon, 24 Apr 2023 23:57:39 -0700 (PDT) X-Google-Smtp-Source: AKy350bJZglMGHvsNoFl5vqmOlhNCFwv7Rf+ddzUNOTwPTJarN0EVp3GjWhBiby+LL4hR9qkYiC0 X-Received: by 2002:a05:6a20:9381:b0:f3:1c8b:ce54 with SMTP id x1-20020a056a20938100b000f31c8bce54mr12062126pzh.4.1682405858728; Mon, 24 Apr 2023 23:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682405858; cv=none; d=google.com; s=arc-20160816; b=wvJwpX4fQY7s7txedC/p5YM4LUxAW3sQUvwxEGiqtvWbs20hoXkiAvij1csPDO6Chv xaj2h+kprIon1fOGjZft3KEn767EeBEBtred2oXgNNwEE7ytCuJbHA4V4dzsnUQnW+QN nSc8gRaLIDTFOu4lrpyNh2WUtJuQp6JskAsnITaehJEGao5pOhT8wJn7tbSXNWRG6uZG ZKLDg16FWjwPcKx+G1M1Zg1SFTAW7JzahJTZH5xf8bK5s78QHzCi00RbJBX357737x4e mUr8GrFQ/tWpESPrmchUbD9M8hnJxA/qnPdKJCvzCeTXG7jprEgQSgSlpwbZ073F+Rfn otbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:cc:to:from:subject :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=M1ZE7zkQJkA5e8pU4DAT31Q8ZdOD3Fw5YHswnvzUZmg=; b=GSk91jv92fP27fpKWHWNUQWE0iDi1FHYoxIQsNEWAWODwyesTYOsW5m/YB/hlP5r2F nnmqS64mw02fyaOXeSX0pi6wf20p2XJfpl4zz9IcFPi9W2+Yb9KopRk1X15irvfu8ay6 oCXtstrywAXfdaOqkAIegNX7ZtwnEpOlcTFgJUQypxK6L0qy2AopoDhjz9OrNru30Gqc gc1bC4cL496LszpHl+qzvMSHX5x4nI2uOGHDeTYpdMBlflnKaB3LZPA9APMKJgEMTeCf bDWc7dY9RnVWJ8kFkJYA3xwKW7+z58A0qkgkLHl99oBAC9VL/wan2uIhC2hxOY8s2Vz4 VmWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=olsY2tC3; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u37-20020a634565000000b00518664086b1si13345520pgk.861.2023.04.24.23.57.10; Mon, 24 Apr 2023 23:57:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=olsY2tC3; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233541AbjDYGsg (ORCPT + 99 others); Tue, 25 Apr 2023 02:48:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233528AbjDYGse (ORCPT ); Tue, 25 Apr 2023 02:48:34 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8D24BBB9 for ; Mon, 24 Apr 2023 23:48:12 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-94a34a14a54so992871866b.1 for ; Mon, 24 Apr 2023 23:48:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1682405291; x=1684997291; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=M1ZE7zkQJkA5e8pU4DAT31Q8ZdOD3Fw5YHswnvzUZmg=; b=olsY2tC3Gx43o+1zlMobkyWpvjqynYcSpBNJpha9GJ236pWS48I5T6fRMsjnEXvXW6 nPi0bqOs+1TlaWLvYdtK05Phwd64bnf8h8lpwCoavOQKecIrT39b+c9OXon5xQQ/G8v5 C9ljuQugTDRKMyiQ5qglbXWyDGR5BHf2xgBOnY4Ic4pvsZ2wdQd/paK4gDRXz5hVaFo1 4sGV2PZjTYKCVn15Pw/Akl3g3hkRNCNsRHG7vFd0Yq0YJiWgig0JZOf8yfF87vpttcMF HG7HPRei4vraUYDcnXZreqsqGm02uputbga0Nei8umyDLFxVgq8OAfyloV/3rrSUMB2q yv+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682405291; x=1684997291; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=M1ZE7zkQJkA5e8pU4DAT31Q8ZdOD3Fw5YHswnvzUZmg=; b=bS8yoDkD0QoAIWGuRUR/AwLJKY9f7prEypTwCcr8tTmwqmNzatg9hsXYt8HgFS8q8Q z/7Arraw94XrSJ4NiTH28SevhoAQmF0/h/amjaqadqVTRQ6Y2O6GL9Z0ye5Z68eLX1Ho csF8yI5V1TPbjjm7wnZR0iPvqgxJ/5mK8c7AW+y0vjJWZBkcSzKdpYVLOxx4kVxHWv3e DAIlqZcEjL3WH7yy0ZlPoS9tc5lYSp3T1buM0Eb9qRnYId43J3Fgonk9XAihJrruobsr gUlrCOY6vJktysAx0+Cjd5+YjY8Gfi57WTlkzgvgHB08tNJgchgNOhFGRLeRx2avY2ML tw1w== X-Gm-Message-State: AAQBX9fgi4p0Dt2crlnkHf4yiYZsrdBoLeKLIW6GwuG3u/asm2hi0IDQ e4rYA9P3dnGZvTVsVv8YddIBgQ== X-Received: by 2002:a17:907:38c:b0:94e:fdec:67e2 with SMTP id ss12-20020a170907038c00b0094efdec67e2mr12906256ejb.77.1682405291266; Mon, 24 Apr 2023 23:48:11 -0700 (PDT) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id sd14-20020a170906ce2e00b0094f5d1bbb21sm6340135ejb.102.2023.04.24.23.48.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Apr 2023 23:48:10 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 25 Apr 2023 08:48:10 +0200 Message-Id: Subject: Re: [PATCH RFC 0/4] Add WCN3988 Bluetooth support for Fairphone 4 From: "Luca Weiss" To: "Konrad Dybcio" , "David S. Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Rob Herring" , "Krzysztof Kozlowski" , "Balakrishna Godavarthi" , "Rocky Liao" , "Marcel Holtmann" , "Johan Hedberg" , "Luiz Augusto von Dentz" , "Andy Gross" , "Bjorn Andersson" Cc: <~postmarketos/upstreaming@lists.sr.ht>, , , , , , X-Mailer: aerc 0.14.0 References: <20230421-fp4-bluetooth-v1-0-0430e3a7e0a2@fairphone.com> <0f2af683-07f9-7fc7-a043-ee55e41d65c3@linaro.org> In-Reply-To: <0f2af683-07f9-7fc7-a043-ee55e41d65c3@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Sat Apr 22, 2023 at 2:03 PM CEST, Konrad Dybcio wrote: > > > On 21.04.2023 16:11, Luca Weiss wrote: > > Just to start with the important part why this is an RFC: > >=20 > > While Bluetooth chip init works totally fine and bluez seems to be > > fairly happy with it, there's a (major) problem with scanning, as shown > > with this bluetoothctl snippet and dmesg snippet: > >=20 > > [bluetooth]# scan on > > Failed to start discovery: org.bluez.Error.InProgress > >=20 > > [ 202.371374] Bluetooth: hci0: Opcode 0x200b failed: -16 > >=20 > > This opcode should be the following: > >=20 > > include/net/bluetooth/hci.h:#define HCI_OP_LE_SET_SCAN_PARAM 0x200= b > Not a bluetooth expert or anything, but does that thing support > bluetooth LE? I don't know too much about Bluetooth details either, but hasn't Bluetooth LE been a consistently supported thing since like 10 years? All the info I can easily find just states SM7225 SoC supports "Bluetooth 5.1". Regards Luca > > Konrad > >=20 > > Unfortunately trying various existing code branches in the Bluetooth > > driver doesn't show any sign of making this work and I don't really kno= w > > where to look to debug this further. > >=20 > > On the other hand "discoverable on" makes the device show up on other > > devices during scanning , so the RF parts of the Bluetooth chip are > > generally functional for sure. > >=20 > > Any ideas are welcome. > >=20 > > @Bjorn: Patch "arm64: dts: qcom: sm6350: add uart1 node" should be fine > > to take regardless the RFC status, I don't think the problem is caused > > there. > >=20 > > Signed-off-by: Luca Weiss > > --- > > Luca Weiss (4): > > dt-bindings: net: qualcomm: Add WCN3988 > > Bluetooth: btqca: Add WCN3988 support > > arm64: dts: qcom: sm6350: add uart1 node > > arm64: dts: qcom: sm7225-fairphone-fp4: Add Bluetooth > >=20 > > .../bindings/net/bluetooth/qualcomm-bluetooth.yaml | 2 + > > arch/arm64/boot/dts/qcom/sm6350.dtsi | 63 ++++++++++++++= ++++++++ > > arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 17 ++++++ > > drivers/bluetooth/btqca.c | 13 ++++- > > drivers/bluetooth/btqca.h | 12 ++++- > > drivers/bluetooth/hci_qca.c | 12 +++++ > > 6 files changed, 115 insertions(+), 4 deletions(-) > > --- > > base-commit: cf4c0112a0350cfe8a63b5eb3377e2366f57545b > > change-id: 20230421-fp4-bluetooth-b36a0e87b9c8 > >=20 > > Best regards,