From mboxrd@z Thu Jan 1 00:00:00 1970 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 B9E5B37C11B for ; Fri, 15 May 2026 08:28:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778833738; cv=none; b=IiCPqAcXjJx95wx9z0uxL76iTUf1LmM9FzKIlBc4DNtZcfmq6mhO2hihUgBEQW/Y6qtOzFEJZ3QtRgPPMKKjyO197WGVk/2CFOw2Puh5Y6MzXLLNupoeLkCkVFLw8qP+yNNk9cd8U+ExLFCM8SK7gf88oBvny8KJ1OecUbJLFu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778833738; c=relaxed/simple; bh=b801m/PcDDlrANvuEO8pdcmEe/+cg4X1nK/OHFHP+Q4=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=LJ4Ci0BDDDs1VdAYJYiLTadWOLyT2Kc4vK5aK7MDJqSOlu5e+28s2T8uefIxhjGx9qqcjtuVVwgvvpw9EHxnP/qs/Fyh+89u3NycaNQzhJRK8c6bg5S8ZXF6jyHt5D6DFhmLBfdsBIR/Dq4dW/XKpxR4bIAkrvKWyY1udaLH58E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aIfaAN0N; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="aIfaAN0N" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0853AC2BCB8; Fri, 15 May 2026 08:28:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778833738; bh=b801m/PcDDlrANvuEO8pdcmEe/+cg4X1nK/OHFHP+Q4=; h=Subject:To:Cc:From:Date:From; b=aIfaAN0N0Lg2eQ/hoF49OKPdEVccXZi/eUZ3/ISdNpWUpOPXTC453W1v6vKiWTElp safnodMgWm1pSFT/jQ9hzAJiqlJTnGXf6skZTu14/x0T3MF8bg7kDTsTu7rS5zjujf qehx5zlLhF+KxxVylXGFiKJg9b6bnHrsvUsnZ8w8= Subject: FAILED: patch "[PATCH] spi: bcm63xx-hsspi: fix controller deregistration" failed to apply to 6.6-stable tree To: johan@kernel.org,broonie@kernel.org,jonas.gorski@gmail.com Cc: From: Date: Fri, 15 May 2026 10:28:32 +0200 Message-ID: <2026051532-stopwatch-dramatic-8dd4@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x ab837c51899d7595c1165a45dfb631facad49461 # git commit -s git send-email --to '' --in-reply-to '2026051532-stopwatch-dramatic-8dd4@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From ab837c51899d7595c1165a45dfb631facad49461 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Thu, 9 Apr 2026 14:04:05 +0200 Subject: [PATCH] spi: bcm63xx-hsspi: fix controller deregistration Make sure to deregister the controller before disabling underlying resources like interrupts during driver unbind to allow SPI drivers to do I/O during deregistration. Note that clocks were also disabled before the recent commit e532e21a246d ("spi: bcm63xx-hsspi: Simplify clock handling with devm_clk_get_enabled()"). Fixes: 7d255695804f ("spi/bcm63xx-hsspi: use devm_register_master()") Cc: stable@vger.kernel.org # 3.14 Cc: Jonas Gorski Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260409120419.388546-7-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c index 266eabd3715b..e935e8ab9cfd 100644 --- a/drivers/spi/spi-bcm63xx-hsspi.c +++ b/drivers/spi/spi-bcm63xx-hsspi.c @@ -857,7 +857,7 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev) } /* register and we are done */ - ret = devm_spi_register_controller(dev, host); + ret = spi_register_controller(host); if (ret) goto out_sysgroup_disable; @@ -880,9 +880,15 @@ static void bcm63xx_hsspi_remove(struct platform_device *pdev) struct spi_controller *host = platform_get_drvdata(pdev); struct bcm63xx_hsspi *bs = spi_controller_get_devdata(host); + spi_controller_get(host); + + spi_unregister_controller(host); + /* reset the hardware and block queue progress */ __raw_writel(0, bs->regs + HSSPI_INT_MASK_REG); sysfs_remove_group(&pdev->dev.kobj, &bcm63xx_hsspi_group); + + spi_controller_put(host); } #ifdef CONFIG_PM_SLEEP