From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A81F0606A32D for ; Mon, 30 Nov 2026 03:19:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=xZxiGr+2; dkim=pass (2048-bit key) header.d=archive.org header.i=@archive.org header.a=rsa-sha256 header.s=google header.b=UxTofGzY DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=E/bZsIOaKlUECGFKFQTxZqU7sGUpQOMmVC9xtTBCtek=; b=xZxiGr+2R9xecx 14OVBTo182XCx7rxUxKxrLKyJ2DmP6VdTY5cl6NWA6Ax6UdbatwXuJuw5KY5MLyqI3MP6ovC0GN5c 0ke5G/4JkwEKErfxizRRvdpaqBV/KJnyYxp9NgbhZcd1FcDMG5GvrapGt3KEbsUihtPttu+SVnu9E v7AJsvi/lzX3OhnHCZfeik8oKPrwqq37ARbUbZbJpnYBSWPmh/pzy+N8MheZ+h+AHbcHMNovXUzAz 9JpqsdFpMwEbhm/z3h6rh7gudPkZCCfpl1mssYuAvpVATWMtUShahRFK8OAotlSOE9CF2ck1Ir2hO 8+FZpsx+xSA/K9V+jOpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXrun-000000034Rn-34GN; Mon, 30 Nov 2026 03:18:53 +0000 Received: from mail-dl1-x1231.google.com ([2607:f8b0:4864:20::1231]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXruR-000000034L8-3msE for linux-arm-kernel@lists.infradead.org; Mon, 30 Nov 2026 03:18:33 +0000 Received: by mail-dl1-x1231.google.com with SMTP id a92af1059eb24-1b5adf7eacdso968993c88.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=lists.infradead.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=UxTofGzYIVik6yKcVGJADUeiGqlSdV+D/lLOzqxXBNeKGHN70E7O113vQ6GjO4i4MP 3UU0Ea2tMdDUc/yjpiM2dExIlqk5CUjpECnDimr1JPThV/4sXMWbOYXJGAypdmzOTXoo 0dTsG8MF53Vrwgfv/g/onpopfwi9LKkIhF9wCrTzqQTkk9VQGaQ01Il/MFOVjO4AIZQZ GrCAWgE3ff0NtOsH2K2OWnXEQ/62IQ6GMGb6mG8h5w1afoPVuaz2+8UOVvRCuJRw69uG UqdIF1pC6QtM932X26/XTmTFuSPydh650pggguyTJkl8iIA+Jv9gROZGGG5Ot+Dk2XXs t37A== 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=QByE8x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J+RO8qyTarjObf24F9nHE1HOwcp7CzxxhlMsMiI9VcYyoG6WRkyKGonmrAImy8T Rm3hEiskSyQgO1VvzFLOMFu7p+mg6SHDaxD/CB1ErO0do3v+XN54YhrSHhQPWpnWblK6VrbWpGX GKHOh2pCr+WjSU2L/rib5fg4 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-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261129_191831_992629_E1E75CA5 X-CRM114-Status: UNSURE ( 9.30 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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.