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 1EEDF39E9C8 for ; Tue, 12 May 2026 12:48:20 +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=1778590100; cv=none; b=ZzZoeZ/MPeHaI6dcGPTBQU6invre9rP+LeNL001HDs0rhLaVEN5gXp0fiGdySv7s8HYLyQnVvn88KLn1dF4/hdrrmKxIi6S0GSjtVfpO+5vFAsRbvfB76W9o2XogAA74kcbeHCNeElb5bx4o5RMHcjeA+qrSs/kYVn+AmdBK17c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778590100; c=relaxed/simple; bh=C3aj9KAn2FnSy8+ZbrsLgrnhoSyvhID1WryydLwRo3g=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=mQz1AH1zJxkb1Q7LXQZmVfBixEhVrgK1ZYIunf0lmrA2B+tq6jZy9RjwPRlnUkVNJPFUoZycngF8ooWtu2uz9qsSMyliS6+Yygoyvjx4lAWsahRe1YkswdtFVdhrdA9xecMHhKZ1JjtdMMnEB4g1af3nSQp/VMVK+HRYIFtaWqY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bKCxCL5d; 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="bKCxCL5d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABBFAC2BCB0; Tue, 12 May 2026 12:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778590099; bh=C3aj9KAn2FnSy8+ZbrsLgrnhoSyvhID1WryydLwRo3g=; h=Subject:To:Cc:From:Date:From; b=bKCxCL5dNrRbNHzH8S4oYSpBalqk3Ys3blXw2cRAwjWN2jjeKuFJviIR0sS155zGB cfpKxHKBpRxaW9j8deuffjvpUJXcJN0i3eJ4CirgU1KMz6ACOX89/otaCPlFmpcZ+E vayNRUJpkdsR9I29aTE7b/RBkw/lNwi2EyhQ5AUs= Subject: FAILED: patch "[PATCH] spi: tegra114: fix controller deregistration" failed to apply to 6.12-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-constable-blinked-f3b7@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.12-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.12.y git checkout FETCH_HEAD git cherry-pick -x 9c9c27ff2058142d8f800de3186d6864184958de # git commit -s git send-email --to '' --in-reply-to '2026051237-constable-blinked-f3b7@gregkh' --subject-prefix 'PATCH 6.12.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