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 0F398360EDD for ; Tue, 12 May 2026 13:49:35 +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=1778593775; cv=none; b=LfhzFfQHU7wP/AnQEh2MAwkJkW7frPIelV11Ii/wHxSjfnVZ410IIrtC1QIERkTIJMZwPNLgbaGeub4wB3MG3Ja+oyXr/1cBQeMQLNmhZ0oSuvGzyxdqBVYvk+MGhp7PdRcpUwz8OTb95FAx+hNh23sh+sCSwZ2Zed/zFr1XMh0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778593775; c=relaxed/simple; bh=O0Ne09liTyHEZIWfWl3d6NB4havAZvub4boHzFeCRFg=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=h7ZAAqdHEmChYnnNugGsJn1kRYp0mC7/eTpMT6VxoqzG9O75qzr54ZMlbCEC2l7b9jCPHJm6X6hnkw6zpp80KywVpsgIujkFqqz1hwLNuFwqyD41dddnNwySeuQee5CAISnr4NoNadFXkvL3OVt8U+K0H67UyARILTLxUMdmVOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1US8Df/t; 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="1US8Df/t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 943F9C2BCB0; Tue, 12 May 2026 13:49:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778593774; bh=O0Ne09liTyHEZIWfWl3d6NB4havAZvub4boHzFeCRFg=; h=Subject:To:Cc:From:Date:From; b=1US8Df/tmyU/+pPYId1dBq3T+ss78UP1Doshzl7qTIGJWAwexkxp9r13pnuDH6Bf1 +M1f5oCADM1p1fhnWJUUAbipn/H5iz79Jsg/AzsDp9kGp1x7JcOFT1LNmf0CIk601I Md4x1ZGStZU9NFtnZUMOO5C+qQBExAEWxYrmF+cc= Subject: FAILED: patch "[PATCH] spi: topcliff-pch: fix controller deregistration" failed to apply to 6.6-stable tree To: johan@kernel.org,broonie@kernel.org,masa-korg@dsn.okisemi.com Cc: From: Date: Tue, 12 May 2026 15:49:39 +0200 Message-ID: <2026051239-idealize-clanking-104d@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 5d6f477d6fc0767c57c5e1e6f55a1662820eef87 # git commit -s git send-email --to '' --in-reply-to '2026051239-idealize-clanking-104d@gregkh' --subject-prefix 'PATCH 6.6.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,