Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3420016rwr; Sat, 22 Apr 2023 05:10:24 -0700 (PDT) X-Google-Smtp-Source: AKy350Yb6ft5CCGf6Vx4+MjlU2RQheZbxwwc2e2ICXWVg1UWNPdpduigumKIi/sHthqvnJx4jXT5 X-Received: by 2002:a17:902:e802:b0:1a6:c366:1609 with SMTP id u2-20020a170902e80200b001a6c3661609mr9539737plg.0.1682165423757; Sat, 22 Apr 2023 05:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682165423; cv=none; d=google.com; s=arc-20160816; b=UKY2nKL6JscM6RuTEwQ4XH+kg55tBOOfW6iK5Qq3BTdHnIpTtYxwo6eNzcLuReeFY1 C2YILv4hz2aBZOVms9RmCxTNXUDXzGK+K3S7jYqO4nHICaMydwM8auVYJ1T4MFZNwwwe CDSywM8MQUT4+TgsmFA/Kiy+EmSP156HUb1TEtOsZv6x0MSvS4sj8Y7wTHC+/jMlvoj6 g3j6OSeWOMmF9gWDt0jyCWh+FA1LBWZ9jtknFlWZIUZpn89JTqwjr5zaGfe59j+Q7byB hIRbvi2M6i/7g2ChUlFhwyWW1AJvwEhflihgNw2/V42B4qOKynNXjivjMJQu/MxRXmmd jhOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=GTXIba6kgfgnk6XMMPm6IqSpaTy13D9nbXjftZoHK38=; b=jKecI9Bp5mZMaq0VN5FRkFXYb6bVdvNf9/S3CNgasHfgevGqb2h/VTgqFV02a7Oo2u KgUpkHY4QDScJWDC3FA6SOjwqx0hjEYKtUK8b+ZNdYm1GL2fVpbVnxS3n06Vy597Mc7N 1g5Dhv/rrDd8mIzj23E9FXB/GhZmwbww3y3eh9AJ1SR2ycaCI7apuxOA7y/tUhjsFAYu Z+yOM2l99+5WO0YuelHerJTWcbPL/XnF3ZaiuVcRjehJtSDXyY6dq0VbS/POsEzU3uF7 ytABsDr2AGMYF4DQDM75uhi0q/0wGeqVqQ76UPssCPJIu6XZhO7kluTdhKpH+LA6xPCO Z6qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GPuC2HOT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kw8-20020a170902f90800b001a1defc30cbsi6147657plb.479.2023.04.22.05.10.10; Sat, 22 Apr 2023 05:10:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linaro.org header.s=google header.b=GPuC2HOT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229825AbjDVMDk (ORCPT + 99 others); Sat, 22 Apr 2023 08:03:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbjDVMDj (ORCPT ); Sat, 22 Apr 2023 08:03:39 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7B751FC8 for ; Sat, 22 Apr 2023 05:03:37 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4edb9039a4cso2666538e87.3 for ; Sat, 22 Apr 2023 05:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682165016; x=1684757016; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GTXIba6kgfgnk6XMMPm6IqSpaTy13D9nbXjftZoHK38=; b=GPuC2HOTbLafP1qatCOmNgcyDBTReKAPNo5aHGQ4ZHZB2PpLAM7ftc1KrLDydpuJa7 8LP0KnbHQYk5IdlDEyiGzJS+B9rz6VOWi1CxSu4hb4jkJqKChcWRHMGsPJKNEhRSD2wF m2hUQCCKsdDFPDvUMSrYnwcyYXV3wf+hBt8xwtb5aLvC9PbotDn01SViambNGlAW0uIj UOK4xbMlwqQSjRycWGDZ6nU4UqgqbR0aSikN3/6eiBeuxo13ELHpXbVakoYTWmCondvm AoVz6iJUsbiqiXWjgjhLJpSm+aqZmvhxYjjhgKa5/lSIDqMiJLByibyI1qpl9Gmw7ZSx g7jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682165016; x=1684757016; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GTXIba6kgfgnk6XMMPm6IqSpaTy13D9nbXjftZoHK38=; b=VvjR21bbP/0iFA5WtDKZJYldQKPjqSRHU5Mm4i0bAenbFC4wEEARoSjTU1ySRGmxyM 6IceSJeri60ENVSvEKXlFBHOqBppfC/9KMKraA7z4JyEgo5fkmSjahtD8z27ER56T273 jYTWbgn8oGS7jrgNDRTMMgEiHl2ncnROUknJrB+iyiKPshS0L8+BcXMjtf4SbWcuimJl 8UTiuCgorufEUrFGha2MMmmKILvcOsgmlOpGQ0ezsiXx8NTGr61u3kWenfYrzXbGobxf a+ym0pquSCr522nG6+QRP486Ara8GUKKQD35GFw9vDDQAIoHdSuXKg0/wM2TcegnnDpp tccA== X-Gm-Message-State: AAQBX9ciip9OFMQEWR4i5BH5uy7VCU8t9Gk87/QQd6z9xCk4rcUITbo2 8r6ZYftvIqrUmISBrFQgn1mHOA== X-Received: by 2002:ac2:5a46:0:b0:4e8:47cd:b4ba with SMTP id r6-20020ac25a46000000b004e847cdb4bamr2350700lfn.13.1682165015987; Sat, 22 Apr 2023 05:03:35 -0700 (PDT) Received: from [192.168.1.101] (abyj144.neoplus.adsl.tpnet.pl. [83.9.29.144]) by smtp.gmail.com with ESMTPSA id b10-20020a056512024a00b004edc3bd7fa1sm872153lfo.201.2023.04.22.05.03.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Apr 2023 05:03:35 -0700 (PDT) Message-ID: <0f2af683-07f9-7fc7-a043-ee55e41d65c3@linaro.org> Date: Sat, 22 Apr 2023 14:03:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH RFC 0/4] Add WCN3988 Bluetooth support for Fairphone 4 Content-Language: en-US To: Luca Weiss , "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, phone-devel@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20230421-fp4-bluetooth-v1-0-0430e3a7e0a2@fairphone.com> From: Konrad Dybcio In-Reply-To: <20230421-fp4-bluetooth-v1-0-0430e3a7e0a2@fairphone.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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-kernel@vger.kernel.org On 21.04.2023 16:11, Luca Weiss wrote: > Just to start with the important part why this is an RFC: > > 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: > > [bluetooth]# scan on > Failed to start discovery: org.bluez.Error.InProgress > > [ 202.371374] Bluetooth: hci0: Opcode 0x200b failed: -16 > > This opcode should be the following: > > include/net/bluetooth/hci.h:#define HCI_OP_LE_SET_SCAN_PARAM 0x200b Not a bluetooth expert or anything, but does that thing support bluetooth LE? Konrad > > Unfortunately trying various existing code branches in the Bluetooth > driver doesn't show any sign of making this work and I don't really know > where to look to debug this further. > > 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. > > Any ideas are welcome. > > @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. > > 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 > > .../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 > > Best regards,