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 2547A39061D for ; Tue, 12 May 2026 13:49:45 +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=1778593786; cv=none; b=O/JvgKhuW7DpME/b+2Ugh6f1h1ZsflcKt1WTlZ2kXpJGrICJBzNmEQJKBKUCXLGyBZCZZLaSnMapiISktSO0LMfimOy6AHtPTxJY7aTW5qgMSFLyLEJnB4ATr7lJwrHlpAARXrV5udgN2eeM+NDfLHpF8oVOXbTlMA1lD9UCVwo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778593786; c=relaxed/simple; bh=ydr8N9HiNeDnaKM+UNOhkPCrfFHUM5oE5+zhdSL2fiQ=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=QR/HYQL44Ves/QPqJ/ucWf4AlXPux3voK3l4Bx3Brg4UIPtWQ0ybHnyPR40dXAx7qFzKv6WZwIQNDJV1cXZ6LUjE6XsKbvIrt9NAHihKDcrxQOaEhlR6tzVYn6QFMzpuyXJS4A0l1hvfsabhdGq5gG65w1OOBFc3b5tipM0U6OY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c9iPmjO/; 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="c9iPmjO/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71EE7C2BCB0; Tue, 12 May 2026 13:49:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778593785; bh=ydr8N9HiNeDnaKM+UNOhkPCrfFHUM5oE5+zhdSL2fiQ=; h=Subject:To:Cc:From:Date:From; b=c9iPmjO/xyXCUecpqEgorn4rl6TOpnAUEQRLxkYFUTKihyIfTRqKv7en1cul0bVlP 9Qz98JyTGZ5adeOzMqqdDqkf+g2WiyZA5fUkdEv6VBoMtr1yq+bDD0VVDoCpg5GwIw MF7SWKejFPry2MMa+Z3FTPXLqmJubYEfzoXL8kAY= Subject: FAILED: patch "[PATCH] spi: topcliff-pch: fix controller deregistration" failed to apply to 5.10-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-chest-glider-6f38@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.10-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.10.y git checkout FETCH_HEAD git cherry-pick -x 5d6f477d6fc0767c57c5e1e6f55a1662820eef87 # git commit -s git send-email --to '' --in-reply-to '2026051240-chest-glider-6f38@gregkh' --subject-prefix 'PATCH 5.10.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,