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 9246439988A for ; Tue, 12 May 2026 12:48: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=1778590125; cv=none; b=XWPcji9P4Je0gQcVtR5sDVVQSfbpK/J0r/o09oNrf3J3p9CuibW5FdQQUPzvGM/Vme1u4aAFf7YDnCQvQlhSCx3LVAmRr9+nitzdrXIjt/Sn/7XwtTRWp4kBF3e+vXgYnYdCLa3VSU4mXVixcwe7yFAK5iz5ZO9vGX6fbF3sQ5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778590125; c=relaxed/simple; bh=Q0m5zzB+2Kdy7Y6hyTB3F/n+5Ng/mEG7qOsqWmVbnrw=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=pQVqbmEzkjStT02xfQ9b+QaaJw+MVyRKA5B+8a3lJJ8Bqf3GJW2TMQmVXaYomcFR1s+ZbR7U0kHWa0BSPsEp8yNP1+ezSzPfrqn0oOdqNhQi85ErVZjHXR0l3SugEeMPb165c1UFjpaUnEO5Oxs9pPw6vHpOF0WDrZHzEOEIG6c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SfLdxGqE; 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="SfLdxGqE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34C19C2BCB0; Tue, 12 May 2026 12:48:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778590125; bh=Q0m5zzB+2Kdy7Y6hyTB3F/n+5Ng/mEG7qOsqWmVbnrw=; h=Subject:To:Cc:From:Date:From; b=SfLdxGqEGW23UPP0FMJpgBGW2Sm09xJ3GQ2iF1nPHpm1OnSO/6Z/J8oPzrA6uSNtf cxRX8cLHvKb+i4N2Wwo0y+xuArHCNtTU7blb5vXre/1mgdX5mcK7XJ/PX62WbgnLhi 4xNjneurNM56zI4zR2cHEK82EqAZyLE02HNChXng= Subject: FAILED: patch "[PATCH] spi: tegra114: fix controller deregistration" failed to apply to 5.10-stable tree To: johan@kernel.org,broonie@kernel.org,jg1.han@samsung.com Cc: From: Date: Tue, 12 May 2026 14:46:38 +0200 Message-ID: <2026051238-satisfy-stooge-2f63@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 9c9c27ff2058142d8f800de3186d6864184958de # git commit -s git send-email --to '' --in-reply-to '2026051238-satisfy-stooge-2f63@gregkh' --subject-prefix 'PATCH 5.10.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