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 744EE399CE1 for ; Tue, 12 May 2026 12:48:27 +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=1778590107; cv=none; b=kRHRwf0oeaBwqoAucRkXJbvd3JadRf5kJHhzgE/CyVRWOziHriPHT7pYG+pk3iqWqJiL2XL97BtxPpEJ1LS7qnlFSSW6tajVrjfDym2c2N4piU9gQRq4Yre/5vq9VUOV7SBlH2v7+AuzKDaBfSDhGd9fakBjkyuM3yacYcZsIZ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778590107; c=relaxed/simple; bh=G/i2QbRKocTSLIX1Evo38NE0mxxguM6ZVDBdWXlYR8w=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=J1avMX+ntLK4o9zhQu6/0Ef4JVy2Abwf+Z26K9u/nW6h93Boq+6nJ00I03k0PSdfTcjOVrDh9y24FrER2XBun4sViGD365vf9PeyD2Eq1TK5fisEwEvEjELB2w1mzUWeKedssd0koiqJYqmDuwcqhHUU5enb1EiGmAwPnZiIjb4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R+G3DlNf; 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="R+G3DlNf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D12CC2BCB0; Tue, 12 May 2026 12:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778590107; bh=G/i2QbRKocTSLIX1Evo38NE0mxxguM6ZVDBdWXlYR8w=; h=Subject:To:Cc:From:Date:From; b=R+G3DlNf3o8O/FPZHGwLUPK4zklkB3xmkiYVvWE7c3DTUJ3C/EFBkqYDlHMpWZOFe YJsF/ENTzu3fdAr83lgQv11/jSsfeuxez0ZGDAmb+st8Trl6d+1lmxgRq2LPHKvmHV dFuTMvHmjJ8/Jy6m5/OgZ9eUciephRUQcOe+mZ+U= Subject: FAILED: patch "[PATCH] spi: tegra114: fix controller deregistration" failed to apply to 6.18-stable tree To: johan@kernel.org,broonie@kernel.org,jg1.han@samsung.com Cc: From: Date: Tue, 12 May 2026 14:46:37 +0200 Message-ID: <2026051237-disband-manual-6d4e@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.18-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.18.y git checkout FETCH_HEAD git cherry-pick -x 9c9c27ff2058142d8f800de3186d6864184958de # git commit -s git send-email --to '' --in-reply-to '2026051237-disband-manual-6d4e@gregkh' --subject-prefix 'PATCH 6.18.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 9c9c27ff2058142d8f800de3186d6864184958de Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 10 Apr 2026 10:17:51 +0200 Subject: [PATCH] spi: tegra114: fix controller deregistration Make sure to deregister the controller before disabling underlying resources like clocks during driver unbind. Fixes: 5c8096439600 ("spi: tegra114: use devm_spi_register_master()") Cc: stable@vger.kernel.org # 3.13 Cc: Jingoo Han Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260410081757.503099-22-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c index 848cb6836bd5..b8b0ebe0fe93 100644 --- a/drivers/spi/spi-tegra114.c +++ b/drivers/spi/spi-tegra114.c @@ -1415,7 +1415,7 @@ static int tegra_spi_probe(struct platform_device *pdev) goto exit_pm_disable; } - ret = devm_spi_register_controller(&pdev->dev, host); + ret = spi_register_controller(host); if (ret < 0) { dev_err(&pdev->dev, "can not register to host err %d\n", ret); goto exit_free_irq; @@ -1441,6 +1441,10 @@ static void tegra_spi_remove(struct platform_device *pdev) struct spi_controller *host = platform_get_drvdata(pdev); struct tegra_spi_data *tspi = spi_controller_get_devdata(host); + spi_controller_get(host); + + spi_unregister_controller(host); + free_irq(tspi->irq, tspi); if (tspi->tx_dma_chan) @@ -1452,6 +1456,8 @@ static void tegra_spi_remove(struct platform_device *pdev) pm_runtime_disable(&pdev->dev); if (!pm_runtime_status_suspended(&pdev->dev)) tegra_spi_runtime_suspend(&pdev->dev); + + spi_controller_put(host); } #ifdef CONFIG_PM_SLEEP