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 4CC20395AF5 for ; Tue, 12 May 2026 13:49:43 +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=1778593783; cv=none; b=ODzkU0O5n9DMzDQs/j0m5Er9tvfBf2XqFFTftt0n7Wa8QhdsDg+RudhJLMj5mTI/szVPApb4CyjvZ+HJWg/Fb1LvyXno4Pv7HyWN3Z5BFKT46B0nA6xMdfhJCjf3UHWsDDzQQOQcU30VvnHxxaJfR8LPDVP6igcYrsdY+IGgq3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778593783; c=relaxed/simple; bh=7ZW8ttS8m7J6CI1myCx9EEd88Nvd2uxL/A1ghOQA6sw=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=nDTR1nxhjLiBeBzWVf2JHn0NEsc4ZjuhPmVqnA6rGQ3ZPxOYXzoYSGZOIy+WgxNLz1zKfe6F5fjBYNmhC7EbJQj0V/6ExoKEMSW8fj5IB2/WRs9jutFQIIbyJ5QEIIa2xr8pgH+ifuCIZiw4qLUVPSS7nzjzpiMbhcSj12Hn8JA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UdTATJgC; 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="UdTATJgC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D295CC2BCB0; Tue, 12 May 2026 13:49:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778593783; bh=7ZW8ttS8m7J6CI1myCx9EEd88Nvd2uxL/A1ghOQA6sw=; h=Subject:To:Cc:From:Date:From; b=UdTATJgC1OFkRtuLd6FdGmJKl2RapLkW0jKvseN4JEg5JCimTUhR3q1w/CMpCPZst LpNkvc9T5Uns0dwruRv9Y8CeUksHVrTDf/s9yDyz2sLVlqB+JsN6CQhclHQ8LYRPHh Lyt74ANBeUUdhJHqouUmqzzQfZdGw/7MgKQdClYY= Subject: FAILED: patch "[PATCH] spi: topcliff-pch: fix controller deregistration" failed to apply to 5.15-stable tree To: johan@kernel.org,broonie@kernel.org,masa-korg@dsn.okisemi.com Cc: From: Date: Tue, 12 May 2026 15:49:40 +0200 Message-ID: <2026051240-sleep-zen-7409@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 5.15-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-5.15.y git checkout FETCH_HEAD git cherry-pick -x 5d6f477d6fc0767c57c5e1e6f55a1662820eef87 # git commit -s git send-email --to '' --in-reply-to '2026051240-sleep-zen-7409@gregkh' --subject-prefix 'PATCH 5.15.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 5d6f477d6fc0767c57c5e1e6f55a1662820eef87 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 14 Apr 2026 15:43:18 +0200 Subject: [PATCH] spi: topcliff-pch: fix controller deregistration Make sure to deregister the controller before disabling and releasing underlying resources like interrupts and DMA during driver unbind. Fixes: e8b17b5b3f30 ("spi/topcliff: Add topcliff platform controller hub (PCH) spi bus driver") Cc: stable@vger.kernel.org # 2.6.37 Cc: Masayuki Ohtake Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260414134319.978196-8-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c index cae2dcefabea..c120436434d0 100644 --- a/drivers/spi/spi-topcliff-pch.c +++ b/drivers/spi/spi-topcliff-pch.c @@ -1406,6 +1406,10 @@ static void pch_spi_pd_remove(struct platform_device *plat_dev) dev_dbg(&plat_dev->dev, "%s:[ch%d] irq=%d\n", __func__, plat_dev->id, board_dat->pdev->irq); + spi_controller_get(data->host); + + spi_unregister_controller(data->host); + if (use_dma) pch_free_dma_buf(board_dat, data); @@ -1433,7 +1437,8 @@ static void pch_spi_pd_remove(struct platform_device *plat_dev) } pci_iounmap(board_dat->pdev, data->io_remap_addr); - spi_unregister_controller(data->host); + + spi_controller_put(data->host); } #ifdef CONFIG_PM static int pch_spi_pd_suspend(struct platform_device *pd_dev,