Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796008708; b=KocqvY0wiTKehreZ237dDFpZ3qYD+gpnkjrU6c3tTnrBWEhrz+pvmXSj87lq1A5mc4TA VznrOMTocM3DcyqJv+APq6W5B9Oer823/+wYuxk2jn5bt61ri6u9PoUcy4/hJpC2MIcZV dZ+I5Ya8QeLHIaGqhyuqoYIE1m7WvhAkxR93QsCkwE9dyN6RK0nwa8DmjObym0befbxhG Oydtgs6E+gXD03PZeZYzBkovZVnLDUj+UpyFTb4CVfI0ATdh/r0cIEOfVHM24SJ1dqjZY nyPaiP0qGjWsl/ri0lmwUvzcIX2jW538Mv/8wlZPI7GyJlH+u7N8O1w/nebSfwWOfiw== 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=TATMRzMhh/0c7bxv1MSH5I6yh5Pf4yLaQ7u+hd0277+gB0E9sbJ77Pd+Vpxdp5StvcFf SvdUxUQG9FyIsmy42IDI0sofuLWD0m2IHZ7feP19e9jYokJVlPlcNszB9qLKnFwbfk/hT jm9fG+op4HQ+jRhimy8M+1TitD3V8mIqqEuKUIUhxTgmwqwWZIZwVW8diMdOZ0IeVcyiV 5qflCbAuJ4+R4IpLYEs5f+TjczPUdR/TJDc3HFFzxEof3YSUBmKtftfYfyMCNtisK33gC I3TE5u/DIQq9dOchBIuv2hVWFXk0uJ8/83Wn2Ig28P6pKu4+VR3nLmCODuAGdmg2oXg== 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=JRN25vLF; arc=none smtp.remote-ip=74.125.82.48 Received: from mail-dl1-f48.google.com (mail-dl1-f48.google.com [74.125.82.48]) (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 1CB5A606A334 for ; Mon, 30 Nov 2026 03:18:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1CB5A606A334 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) header.d=archive.org header.i=@archive.org header.a=rsa-sha256 header.s=google header.b=JRN25vLF Received: by mail-dl1-f48.google.com with SMTP id a92af1059eb24-1a2af4c8d00so1046283c88.0 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.linux.dev; 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=JRN25vLFeEKZJm+568IwAOAOLNeOsOe9pA0E25ziSEwXoajpdzkxaBkJeiW+iLM46h +oZr5wz890Ob9GQoWzAxQpyB3q/zDnw9FpfyCI3J1Q+iODbZ0coZ4G+1i5PAfuXO2JUQ t/DpmAIAZIsTzKg7njDRAVZltsQvmkyv01oIIyHu/TezHFIY0C08GthWcQAonrU6L7Kl 7JrVzZGpOfSk3gmVQYrI7b+J8QJpoIdq3C3T1tiMMWjwm+OuBUSxxscAM/375kLYXfQE 1wrKJgV1Ky+o0wK4uRTdYKwEGjg4Jp/p6AjbmBDd3vQNdyC5jnlY8GcxzK7gPH3CA2xY B91Q== 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=U0+bSveXbRAL3nOhSD9i3/1bQlt0ou87l57RPH8pdxT/Knw2JBsLfaP5GzYijIof4v hTa1+Co9bACzUzjKWvePp5YzuEaDjivc0YO6immmKYoeRVYBbhFWMS6/tfVddhi9VRi5 SzRCMon8PGijMRxCP1uc0gwF3d7i4Qhl0KokPJtVgxJawhpKAgZW3l0OjUXDZEmsbbjx m89DQ6tww4a0LUOUYl9ZGN687ZCGFv6Bt6NvS1KxAW9Es5/96dWcm4Ojrlojgr3EqMOx KTmHiAAw98UsgMo7L0WomGu38GXNFxcKiG6FiKNp4jrs/qpeFaLzHHV4PMVrM0PPeABY xYnQ== X-Forwarded-Encrypted: i=1; AL+hErHU/3oxJx95bcGaqvV7/LlXbfR/Q4De+M5TgiFPyWRdUKCFSJiWU07pdZfC1h/wYloMPh/nMQ==@lists.linux.dev X-Gm-Message-State: APuU4Z+MY+9kGdzEKrUF8oUY+386x1iC1qkuqUXqWsZ2mgeg9BfK9Cov ywdjsYmJvbk+Q0+TWp8ApEORleyWFyaD37h2EgMjAh7OQfWHOIL9Nd2dOb60kOtqS4I= X-Gm-Gg: AZFdTZcKjpSbTcHcjWQHCS+fSCfMiQmPIrzYcnmO2+0unsEsHfU8ckZu55DrS/9qYra N7EDVIxJ86uUxXFjAuA90KDlsOegqPQ6P/nkV8qI7Sj8J8bf/3rcyfIJ/hhXLbib4EdD14PKoVd S4kT59qp4opPEYEYZmw0kRzpQQ1KLeFf43oV4UYzrC0KCFge2qxd/zhrMyiNIJaxNzuyf7OYO7d 0klaRfUiWEjY3jn/BhcOprPRzhNF2hXNREgrin7Fl110C206PmnmVP/IQozm1snzB+138Px2wOS AsFOhU/AcvP2uCo7mo2Cef0OKCLJ/eWCS988zFSN6OoDpzQzG6dbp+mv4tazSG3jVfpKydvv+V+ moqEfljwWEA/BypXpoLg+Q5ewtRjzZ9pW905auA9oqfGOCuDNapVnF/zlApUlI81oLkAqOOjf9w tjmhZQ2rJ5846bzw3zGnLnl2qvBOHwDkMSVXzcWIKQI8dUbqkk5KfP+P1C4O3AqtE5EzwIjcPLa TzWHEeraEH1Czc49EOILfxFTIOsTXAKu2QyPztnTqcFVU9FvjrntBY1DCAgR2UhvfYL2T2EgUPK b4/vCdvOV5fIG9A+QPt9e6oQ 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: asahi@lists.linux.dev 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.