Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7566470rdb; Wed, 3 Jan 2024 23:50:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHAhrOiQZNz7C41XcC8npTmkyEYPIS0AizoXIec4ERzpvekYFDf/CuUIfVguTq9+kh2quSx X-Received: by 2002:a17:90a:1109:b0:28b:db65:7789 with SMTP id d9-20020a17090a110900b0028bdb657789mr220205pja.55.1704354648477; Wed, 03 Jan 2024 23:50:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704354648; cv=none; d=google.com; s=arc-20160816; b=jL+8JTSKWr4vBwxk96FpMxHMENNPfyMYQRLxjY6pg4rfgHczitIyaxEWGl6YTnPEO7 WoNfMGiwW0BMWfq3g5PdqJh2tHeEHNj3VqGbeaQXw9mLfsa+uE2h7lzFOPqaq65F22VB kkPXHwOfku4pV+UV6B7Rhcebdnnqd87UYlzZ8NhTEn/e7q3NBYKsvfZOjz7SCCnXeH6S c8WK8VfZ6O/RNhaIo/dGzjEH5OAdRd8HvO0zp87bCPQ1lRr3h67mpC16ewJruMsfhEaO IkE4+gbF2ODezCzhv8FjEN/qC2+/YWiW5mxGYBTV4HVPeq1JJpDV3ixkWufZFC0lTyO2 Asfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:from :content-transfer-encoding:feedback-id:dkim-signature:dkim-signature; bh=oVCT/6mmwfMbt8/ULc2eXbjs5hsv2iyzg0YtDX0R8EY=; fh=QdKcaq+14v/VvX16LO478iznQ4KQrZTiefu4guoqcWE=; b=wvm++YKg3HV26/xlXi0JZ0gY4ko+R2RJeeJ3agKGDzgnX7uekmR8XxuJeirstRRel1 rE1MwASBls0B8BzIzA8dnEVWGGIkSYkGjgWOYBIz1topSB9w8t8EwfT8koheWb+kAtOj UGLK0ODMN2sBIGKuqrnEas7Usd3+eGKpGgVwsnkXWA6odnsnaMK6m+yQkDt+7ZAe9FZl b+briaYZlsirgUtFUNwcNZdjlKTGotSwA8srLqVkbSEAY/C6hTQcTy2tGe6f+pc87Jw6 8Xmn0itX2fKF6uDqnIBHqzPjvtEBn7N37LpanDpdU0WEWu6JKBGGR7javkpbHLAX2gv0 wbTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm2 header.b=WCyYGHfR; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=gxunz77h; spf=pass (google.com: domain of linux-bluetooth+bounces-877-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-877-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svenpeter.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id nn15-20020a17090b38cf00b0028c19640a5bsi2538356pjb.49.2024.01.03.23.50.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 23:50:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-877-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm2 header.b=WCyYGHfR; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=gxunz77h; spf=pass (google.com: domain of linux-bluetooth+bounces-877-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-877-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svenpeter.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 25D2A287513 for ; Thu, 4 Jan 2024 07:50:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B030C200AB; Thu, 4 Jan 2024 07:50:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=svenpeter.dev header.i=@svenpeter.dev header.b="WCyYGHfR"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="gxunz77h" X-Original-To: linux-bluetooth@vger.kernel.org Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2865E1F927; Thu, 4 Jan 2024 07:50:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=svenpeter.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=svenpeter.dev Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id B62973200AFD; Thu, 4 Jan 2024 02:50:33 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 04 Jan 2024 02:50:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1704354633; x=1704441033; bh=oVCT/6mmwfMbt8/ULc2eXbjs5hsv2iyz g0YtDX0R8EY=; b=WCyYGHfRMlab7s0utl02nhZh6r6dBsdWHwlVg8kZ0pAIwwxm T359V9XICBCpAetn58aV9xqGiIY4cmQG+4d2WRjNFEru0Lo6Uu7j6WyNeZhbvvC9 e9EJN6XRGTHVo+gaCeEnvXzu2t7Ww8VImNV2WxeLUebuui8UBE3/83WGUgZNLb0R U7ZkcMVN/7QY/4cjUusIosasJfHRyiaSJ58X5+S/SLSN3fcqkXqjQYaSFeeABY/F E88ng0sGDMyNVZKW2vEmaOqB8l/JFMxT+Dc7IpZKOxY6NqvHd0t3wU1KpSEymmj8 GLtYzY4uuh89P3P6c9TmyRRj6+mXOPd7W78RYg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1704354633; x= 1704441033; bh=oVCT/6mmwfMbt8/ULc2eXbjs5hsv2iyzg0YtDX0R8EY=; b=g xunz77hEf37PtaiC8VVWkxuW7X+7bHAlgaKElJQSszWvkVo/XxRGxqINTU7kV6Z8 /k9n5IpP5cfC/ftDYrNPX3W2XgonJNQVWW0JOELW+E3mYkfx+S6UAus1cejes/lB OvBLzSZy3qWDOdpDWmd6MTuKpjUPf3y9KUXmdDT7LyVbpc9Xx65KXyfj9furtGVz fUF/cvTNJjJzvbrCAo8BPaJTF2UytIzf0L6AH+DmnLch2U9co3VrGRpGMYtM/xnB dOyWjyA0WzZXm4Jlkzavbj+o6rFyigw2+fRsq2UruJod1291tovdfDT8WCXQHJKe X27xM1QW7DQLp6eGX2m3Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdegiedguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpegtgffhggfufffkfhevjgfvofesthhqmhdthhdtjeenucfhrhhomhepufhv vghnucfrvghtvghruceoshhvvghnsehsvhgvnhhpvghtvghrrdguvghvqeenucggtffrrg htthgvrhhnpeffvdeugeegffeileegiedtkeetjeekheehhfehudelvdeuuddvleffieev leetkeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepshhvvghnsehsvhgvnhhpvghtvghrrdgu vghv X-ME-Proxy: Feedback-ID: i51094778:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 4 Jan 2024 02:50:32 -0500 (EST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Sven Peter Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v3] Bluetooth: Fix Bluetooth for BCM4377 on T2 Intel MacBooks Date: Thu, 4 Jan 2024 08:50:19 +0100 Message-Id: <86B7DC5B-B25A-4D55-BBC7-A1C3EE8AC703@svenpeter.dev> References: Cc: Johan Hovold , Paul Menzel , Felix Zhang , linux-bluetooth@vger.kernel.org, stable@vger.kernel.org, Johan Hovold , Hector Martin , Bagas Sanjaya , Alyssa Rosenzweig , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Orlando Chamberlain , kekrby@gmail.com, admin@kodeit.net, Janne Grunau , asahi@lists.linux.dev, linux-kernel@vger.kernel.org In-Reply-To: To: Aditya Garg X-Mailer: iPhone Mail (21C66) >=20 > On 4. Jan 2024, at 08:47, Aditya Garg wrote: >=20 > =EF=BB=BF >=20 >> On 28-Dec-2023, at 5:41=E2=80=AFPM, Johan Hovold wrote= : >>=20 >> =EF=BB=BFOn Thu, Dec 28, 2023 at 10:46:57AM +0100, Sven Peter wrote: >>=20 >>>>>> On Dec 27, 2023, at 11:30, Johan Hovold wrote: >>>=20 >>>>> The commit you tracked this down to restored the original semantics fo= r >>>> HCI_QUIRK_USE_BDADDR_PROPERTY, which means that it should only be set >>>> for devices with an invalid address. >>>>=20 >>>> The Broadcom BCM4377 driver has so far been setting this flag >>>> unconditionally which now potentially results in also valid addresses >>>> being marked as invalid. >>>>=20 >>>> I've just sent a patch that makes sure to only mark invalid addresses a= s >>>> invalid: >>>>=20 >>>> https://lore.kernel.org/lkml/20231227101003.10534-1-johan+linaro@kernel= .org/ >>>>=20 >>>> Note however that the flag still needs to be set in case your device >>>> lacks storage for a unique device address so you cannot simply drop it >>>> for some device classes as you do below (unless you are certain that >>>> these devices will always have a valid address). >>=20 >>> We do know that though. >>>=20 >>> BCM4377 is present on Apple=E2=80=99s x86 Macs and always has internal s= torage >>> for the address. If the board comes up without an address there=E2=80=99= s nothing >>> much we can do because the address isn=E2=80=99t provided by ACPI or any= thing >>> else and setting the invalid address quirk for that situation seems appr= opriate. >>>=20 >>> BCM4378/4387 is present on Apple=E2=80=99s ARM Macs and never has intern= al storage. >>> The address is always provided by our bootloader in the device tree. >>> These should always unconditionally set HCI_QUIRK_USE_BDADDR_PROPERTY >>> just like this patch does. >>=20 >> Ok, good, then this patch and the one I posted are mostly equivalent >> assuming that the BCM4378/4387 return an invalid address during setup. >>=20 >> This patch may be preferred as it does not need to rely on such >> assumptions, though. >>=20 >> Johan >=20 > So what's the final take on this? Which one is gonna be merged upstream? I would=E2=80=99ve preferred this one (possibly with a better commit message= ) since it=E2=80=99s more explicit and doesn=E2=80=99t rely on additional as= sumptions but it looks like Johan=E2=80=99s version was already merged. Sven