From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796008708; b=5k0PzSVqk9oycmzKd6sd2VhW19/oofIT4ym4CHffjpW/smXn0OYsGmTsiFUQKVtG7q2L lS9NhyI8JL/mGOeAZWEchYq6J7lpib4qrjVRQj+qpRqwKAVQxRHILmO8OZwEt99rZVU3p /vJePF/6hqZdFIrnpw/eMm1n8b7Ou9FyIjC/0rlvHSn8WfAObSP7tpBw7td6isHdCttNp j1vvfY3KcVNPCGbABfGRTskmpofYjSjA4gJiyQArDPGzU9PwCYUchNWunXaKnE1vQn74G l53Y9oqjz5MIsm9bz/0Rd2zTGhRgur+77FT03cMIhhLK6WLenYm+5NftWZl+uj5wscQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796008708; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=E/bZsIOaKlUECGFKFQTxZqU7sGUpQOMmVC9xtTBCtek=; b=0F5dRH0qOJ9kx69k94Vz5E/3+yhSE1ENWN13v0OAtiZ0is0dP2v9FgQcpCgfsbpWdyPM wOESygYmWzczev+yNeSGiLPfJLDCDtEL8Vj7+CRTqFJvnTxLVjTLfb55pCr8jTCPxNJng vvv1VdEUvEF06SVMrsWmMHGRxmbSQe7LiZihgJsy6XCu7lDi/Q3jeQZNvk8E80g1wI+qG nP//mMsqA0zMjk7rF3vkPkH9I4dl2h3NNYYQKdmr3kX+n2hVwzFC0tAgIuqV6V/OSk4Yu Nvv7DL6agCf03gjXsy3qKNOZPhScv9K5xEpl1BUlGaUoB7gsDRoTMRfk6pbz+usO2Xg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=archive.org; spf=pass smtp.mailfrom=archive.org; dkim=pass header.d=archive.org header.i=@archive.org header.a=rsa-sha256 header.s=google header.b=aQdKzhyM; arc=none smtp.remote-ip=74.125.82.43 Received: from mail-dl1-f43.google.com (mail-dl1-f43.google.com [74.125.82.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B15C606A330 for ; Mon, 30 Nov 2026 03:18:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0B15C606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=archive.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=archive.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=archive.org header.i=@archive.org header.a=rsa-sha256 header.s=google header.b=aQdKzhyM Received: by mail-dl1-f43.google.com with SMTP id a92af1059eb24-1b5adf7eacdso968991c88.1 for ; Sun, 29 Nov 2026 19:18:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=archive.org; s=google; t=1796008707; x=1796613507; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=E/bZsIOaKlUECGFKFQTxZqU7sGUpQOMmVC9xtTBCtek=; b=aQdKzhyML2bUsRKzXagKcUpLYjzxzFjsBSwIdyB7PpXuFq1VXrvxdO2/N3anzGOTht kYPLWBh/alu67kMDCIQODnnG1uba6g83pu7Xn84VOl4OIogoDY8Lt/YjVmumTRGBqSEC z7BOXHG39fyN0ZIYeW4NBinJYMtPKho9hFbykQc70sagvFcAmtPVfQe7fdVhCmFLa1ti KjLjMFCVIfByfxgnHG1b9Xu7iX+EsFjtr8YN1Xp1eN3ws1XDAJWwiW7vGR92vFL/jJZl o9W87sL29Q7fCgIvjOQ/riT1oFumGylCg9llUYuvxJMju+LQyCueG2ijjnglyMrpVuus BcaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796008707; x=1796613507; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=E/bZsIOaKlUECGFKFQTxZqU7sGUpQOMmVC9xtTBCtek=; b=fiqj2qwm4zOuaPZpgJHbtRr2pB1B8nEDqofAqgeifwVrxfKls+pvjzB5IdmiXia9Lv T1lDRZ/65jibz0mVcT144hEYts8CIvlxOlre7X8zBzaA4mPgmSmV1oWfg+EJ2pALRkAE woeCWN0JLMsX9lQqUkZCLYxxtSJQ04/lGXpMXB9qcc2TibjuUClcl3TJvgsQSMgbBb2o Qv7+o6gAzUout8YnKsBqYTDpNJMSZTrJ646kPavJ9FBaUo5fv7SB8qCdm3HZOkgcVAJi aBZZXYCMS7Z8zScyjz1hzganKXjmfYSCX0tMNiM/Qfz/FDj5baLTDEPmZBGCgKWwMaaz 1Buw== X-Forwarded-Encrypted: i=1; AL+hErFAalK1OdvcpuVBMv1oza4tw629Gpg9pI0vHoSYwj1fnhxxcM+EjtC69eE2QXXoUC0SjsDS8MQ+UniTQ8k=@vger.kernel.org X-Gm-Message-State: APuU4Z/GOUrdIByr7+VP0LeNeSuKkTpEWJWwM7HtcB57W70ZAOrYnljy DYPzgAsbZBHdwd/udxYpTdHBHuSamk+AvprLl/5/OrVmFd4pQ6nPlFSNSbgYdPELJR4= X-Gm-Gg: AZFdTZev8SzouUDfRnysewM4M7Dq9/lSiR5DAX75F87twU/BIEt4kj7qlHyuXDvcfjS BJ9so+0+K9AoLQP0SmKsvQd/l1pinMLIPKND3aN6Z+66BfiI0hMEnNERiAgNojothXuMFhGegwl uDS+cyQBsLaO9tK8A0heJym+BdaIdYTf7dRX9GYC08O1y81EnUzcSHMI8M4VlVltM32mFJc1fMw tGaIurZd4dlQeOmr7npKOUn0X/jA9XaUlip1cjrVFjI3UNJbJwK8v1qNs2e/kChPXbcVyb+uqKt 2dABk75CqfVRZZr+5PC3pKVAymwpruS516ojGMONXKFfjbhkDh5zLgKZprtW/L/OyXKkymZq2Iq 5ozBjocowIxi/8nPQuM8xQH/scTJ1IZNs2R+QFD/XuTio53aEewraZ3uhBes7871QaRboLaUCtL Fln9uisC5XtlHsPX7hhQud6NXKlxHrkwp5dAwDLttjlq6rWjyCc6G/lUzvqZE1nbpYTs4cWMP4R fStXU40zvR48EGlKDVBIwKW7yVGP/vcBJvTUmYuKzim6k8/c/G3Htl8mB5DThXtdTTdBK0sJhL9 EhWnlqA5KcXHZ4SO1zgxIVO3 X-Received: by 2002:a05:701b:4555:20b0:190:8f72:445e with SMTP id a92af1059eb24-1b556877915mr35091178c88.11.1796008707137; Sun, 29 Nov 2026 19:18:27 -0800 (PST) Received: from omarchy ([98.47.114.6]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b5567ff27bsm86058760c88.6.2026.11.29.19.18.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 19:18:26 -0800 (PST) From: Raymond Berger To: dev@deq.rocks Cc: Sven Peter , Marcel Holtmann , Luiz Augusto von Dentz , Janne Grunau , Neal Gompa , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/3] Bluetooth: hci_bcm4377: check hci_register_dev() for a negative return Date: Sun, 29 Nov 2026 19:17:50 -0800 Message-ID: <20261130031750.26239-1-ray.berger@archive.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261127132501.262651-2-dev@deq.rocks> References: <20261127132501.262651-1-dev@deq.rocks> <20261127132501.262651-2-dev@deq.rocks> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This is my first time replying on the kernel lists, so please do tell me if I'm doing anything wrong. Tested on a MacBookAir9,1 (BCM4377) with an out-of-tree re-probe on resume (linux-t2-patches PR 87 [1]). Without this patch, both resumes I tried with A2DP audio streaming at suspend hit this bug: the re-probe registered the controller as hci1, the PCI core logged "Driver probe function unexpectedly returned 1", and BR/EDR stayed dead (page timeouts) until reboot. Reloading the driver then oopsed in bcm4377_enqueue() from hci1's hci_cmd_work, which looks like the stale registration your commit message describes. With this patch on top of PR 87, 11 of 11 such resumes worked, with two different speakers; with the whole v3 series, 3 of 3 did. [1] https://github.com/t2linux/linux-t2-patches/pull/87 Tested-by: Raymond Berger I used Claude Opus 5.5 to help run these tests and go through the logs.