Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5599590rwr; Mon, 24 Apr 2023 06:36:25 -0700 (PDT) X-Google-Smtp-Source: AKy350ZP2BFzqXc2JNAG//4FRbMprJrRG6aEbK+SD9jHXielhqIURK3l5BmYLg3hXIYW39DhDpfN X-Received: by 2002:a05:6a00:2304:b0:63f:24ce:1947 with SMTP id h4-20020a056a00230400b0063f24ce1947mr15619963pfh.27.1682343385463; Mon, 24 Apr 2023 06:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682343385; cv=none; d=google.com; s=arc-20160816; b=ELcprITku7nM2e0rnr8dRjEW5VwXO1RAute8YiehoR9nbwpC2NKwZAPBy/qVN1lxuw iqnz/UP7lnN3cCldR+uf1yjGdksOttkuuDSxgqoJ/oBvDe4MMD0ByhskwEVAtb38OBpq CfjTrotPP2EUKsTt9hO/X0WsvY/ihosEuvS7G3xtBxIXxXagJ6WzLdlQOfuDrQydwGjY 6tr4dke7mg7vczg7b5zp6wmRkhgVHiGs7InBvga5KHGtZJnJbJHfvOce4bp8iKzfUGb3 2LVv1eH/0EqRnrC83q4Xl52u5bEQv9LJQQStyh/m8r4WuDAj7Vt7SAGlQ2zXR4bvvEAM Xseg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AA3YEyFAmBd+TNpZ+PwN1MVwsAOH+GXGPlxXoNzFjD4=; b=F6BEPx4etBvsDHjCr9gD6tq77rMvv+Vr9+6rfdwPv0PblVIxXyURs255JBb2+rzTyj eZH0SuXZwQzVM6bnw7IvsJUpfbBJ61rh1U7hFMuWqGQFjER0gRMM58AvdJrGngPiE/c0 0IqmWXauQ5QSckSCXce0is4szLCTxrI4CAAg3p8JDCvDfw04I06ffnqeJVoR92mbcNCA nF1Orhye7cuhlKerfuCbDF3gVfUgzkLpIrjYNPxrAOqT6+IeOOG/Q1Q6P2fs17k3A5N/ bi3jNsikV1RReog8BV0a5khDz4buowSSSNQ7I+a5nst1Nkdq/w8c909pmP+crMhuq7a3 joug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c63FNuRh; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h1-20020a63c001000000b004c259db61fdsi11270755pgg.561.2023.04.24.06.36.10; Mon, 24 Apr 2023 06:36:25 -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=@kernel.org header.s=k20201202 header.b=c63FNuRh; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232620AbjDXNgB (ORCPT + 99 others); Mon, 24 Apr 2023 09:36:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232613AbjDXNfp (ORCPT ); Mon, 24 Apr 2023 09:35:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FF1C86A9; Mon, 24 Apr 2023 06:35:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 29EB5623DF; Mon, 24 Apr 2023 13:35:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82BC0C433A7; Mon, 24 Apr 2023 13:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682343335; bh=y75lIJf876GxKiQkHIBiRfNRr/Wh0exyC294HWMMYSY=; h=From:To:Cc:Subject:Date:From; b=c63FNuRh+ltANDc9x1c2RV4jMvPfo8O4kXdC8p/oHFQtXWMmmBTdsV+i1QB2weBhs y3SNmnOoaww2SMmteRuoOGkdquo4UWnhvUd7SJa0OqjocVFJeDqsELAR5AEDYFQbbR aqcCqgaY1AmwCSnSo3qnSdE7y9mzWeVcZc1lq8J2rOoyfFof6WRn8gclL59ibAUbuU sRy8HwSdYGEc2fRqD25vYpzOi0wKMq1BxUbi2dy/WkGv6QTTja8LK5asLZbhUiIIwi 5mEt+540mtlNEL8FG8E+6rEpXNLu7frMwAhubw8MhiuB4pwt4Aa1oYOZGrlT017+UK seWfrKpO9w6qA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pqwMB-0003kG-EN; Mon, 24 Apr 2023 15:35:52 +0200 From: Johan Hovold To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: Matthias Kaehlcke , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Johan Hovold Subject: [PATCH 0/2] Bluetooth: fix bdaddr quirks Date: Mon, 24 Apr 2023 15:35:40 +0200 Message-Id: <20230424133542.14383-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 These patches fixes a couple of issues with the two bdaddr quirks: The first one allows HCI_QUIRK_INVALID_BDADDR to be used with HCI_QUIRK_NON_PERSISTENT_SETUP. The second patch restores the original semantics of the HCI_QUIRK_USE_BDADDR_PROPERTY so that the controller is marked as unconfigured when no device address is specified in the devicetree (as the quirk is documented to work). This specifically makes sure that Qualcomm HCI controllers such as wcn6855 found on the Lenovo X13s are marked as unconfigured until user space has provided a valid address. Long term, the HCI_QUIRK_USE_BDADDR_PROPERTY should probably be dropped in favour of HCI_QUIRK_INVALID_BDADDR and always checking the devicetree property. Johan Johan Hovold (2): Bluetooth: fix invalid-bdaddr quirk for non-persistent setup Bluetooth: fix use-bdaddr-property quirk net/bluetooth/hci_sync.c | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) -- 2.39.2