Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3288977rdb; Wed, 27 Dec 2023 02:35:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDz3JM5SreejeVZJxS5B0Cj3uQ7huyfSQUCugct8p5MHgbvE9BaSB1gpoixpt82jBoTGI5 X-Received: by 2002:a50:cd49:0:b0:551:1775:207 with SMTP id d9-20020a50cd49000000b0055117750207mr5834799edj.17.1703673333046; Wed, 27 Dec 2023 02:35:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703673333; cv=none; d=google.com; s=arc-20160816; b=Ec7h+a+vWAiSPEw7B7X9wq0RZ77WwCpry1o80mjKfsPIqfAaKe5R7gnU7Eg+lQ1s0+ ApF9+EfI7ndf8KE5yqxY8JHGQs3F7FCoNAMafoTrJHvT2Er5qx/ebqtkGMSr0P0ZdII2 0GNAEgQF4jpe0g1IIn5f/7Czm03LJZWUrtEvszGDXSQPJBZEpSj0NMDeaRJtocqVNIrP qf62GzkbqZXFUVKAaoh/L0BWfJI+fP4P5bnYDcguiw4Vczv+LFD1w5IQgtnLoZtXTN28 ngxQjkMjRckmGrYlvtKfB8lVECp/zBzkYH41KJNzAbSSp+ydOHSxihqOztndd0B3at23 zRjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=shGH3Q1XRhpwhy2sv8aGr9xUL01Aa1hO+PkPoG1CCCQ=; fh=+R0AGVuxvQBXDYDIf7uCX3DvSvzYenMlIfT7dMPfHoE=; b=bQ7J2rmDPoAL5ixnPRQ6kgydZoT+KNluT76horcu06EBV1p7+nLFy62kSIK48lsxH/ Rj0iE0fvDwlfEYJhqIVD6J6WAhxtnJYf+6sMs0yt+pDiKbJB4H5a+T3zcn0W0fI9pVRA a2847MGx3OD9r3e1BlhWIRfzoK+rcDtVIUbDrQkYmkl+xlBBslK15+YuxryfFws9r815 mGkOh2d3P4mGrgTGTPBVyP6Gv9LmGQCH8Ln8gK5TctIZw61tnkdQVvmcWeBWEinR4Gip 35xdlbyy16SJZbnTLzuElrE+DsQC3jStwNbqNNjvuxPGIHvqj4/MX1QpdzSfUnv4CnGj 03aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CSe30+oL; spf=pass (google.com: domain of linux-bluetooth+bounces-768-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-768-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ch8-20020a0564021bc800b00554692561c1si4542475edb.242.2023.12.27.02.35.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 02:35:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-768-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CSe30+oL; spf=pass (google.com: domain of linux-bluetooth+bounces-768-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-768-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id A6C791F22B26 for ; Wed, 27 Dec 2023 10:35:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 827B544377; Wed, 27 Dec 2023 10:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CSe30+oL" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DFFAB43179; Wed, 27 Dec 2023 10:35:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E423C433C7; Wed, 27 Dec 2023 10:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703673322; bh=CLApfWGlPigge9o3aRXGuWQYw9nh9nmKCHBY6z1XJXE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CSe30+oLZFgsf5gy58cS+JuPIOHfXK1FNnKMt8yZaGgjyuk1PJaruqVAPuT3cUTnn fcCur28tApDHwHXYCdB73W5b7gnOhQ4YfpZRgY4zPKuQQ3LdBc7+WkIm+5vGnNI3Q8 e5iMyqRUifybvINZxNWHvqPgxyIzcDZxA/YEFSNrTojSFkBAFTamNI4REEFr3Vm6kX ITE+Gl7/mWKxYeWQ6JtuDZCS+t/QACbimdEYj8/CPoJAVaZmVBPtmg9UBASc/reVGi Q1XcQhi/Sul+fOVTqtu8ogNOswgfPdwFrEqYGNjnFGo+Kqwi2gQli9ziRdw5DauMtY QL1oFm7C+aS7w== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rIRFs-0002tg-2p; Wed, 27 Dec 2023 11:35:16 +0100 Date: Wed, 27 Dec 2023 11:35:16 +0100 From: Johan Hovold To: Felix Zhang Cc: linux-bluetooth@vger.kernel.org, stable@vger.kernel.org, marcan@marcan.st, bagasdotme@gmail.com, sven@svenpeter.dev, alyssa@rosenzweig.io, marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, orlandoch.dev@gmail.com, kekrby@gmail.com, admin@kodeit.net, j@jannau.net, gargaditya08@live.com, asahi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] Bluetooth: Fix Bluetooth for BCM4377 on T2 Intel MacBooks Message-ID: References: Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Dec 25, 2023 at 03:21:04PM -0500, Felix Zhang wrote: > Starting v6.5, Bluetooth does not work at all on my T2 > MacBookAir9,1 with the BCM4377 chip.  When I boot up the computer, > go into bluetoothctl, and then try to run commands like scan on, > show, list, it returns "No default controller available."  I have > tried reloading the kernel module, in which the log outputs > "{Added,Removed} hci0 (unconfigured)."  With this patch, I > am able to use Bluetooth as normal without any errors regarding > hci0 being unconfigured.  However, an issue is still present > where sometimes hci_bcm4377 will have to be reloaded in order to > get bluetooth to work.  I believe this was still present before > the previously mentioned commit. > > I would also like to thank Kerem Karabay for > assisting me with this patch. > > Fixes: 6945795bc81a ("Bluetooth: fix use-bdaddr-property quirk") > Cc: > Signed-off-by: Felix Zhang > --- > v4: > * Adjust the format to pass the CI (again). > * Shorten description As explained here: https://lore.kernel.org/all/ZYv8tp3fMiAqK8OI@hovoldconsulting.com/ I don't this is necessarily the right fix. The BD_ADDR quirk property should not be set unconditionally but it is still needed for devices that lack storage for a unique device address. So the following fix is needed either way and is probably all that is needed here: https://lore.kernel.org/lkml/20231227101003.10534-1-johan+linaro@kernel.org/ Johan