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 1670B390605 for ; Tue, 12 May 2026 12:48:51 +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=1778590131; cv=none; b=c5lCowPp85dUFIAd3POgnrmFqrF0bV/29QHVDZyUDVsSBzgCnfnI3qiMWhko1KbpMy+wTxJeUepdmA2QWO55XRSfgiLvDQNWoDiVarubEesHDo213agC7zhC+EcA02431KCHJggGXNQozGWLO07dg7c0agYVbmrVnPQR3S91yEM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778590131; c=relaxed/simple; bh=OVrD2uU4NRufk77u8IMJpZaCHHSv+Bt+lNUdd38Dz5Y=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=MyJxOqem0lvmeixwUjst1aQjsSFx76QHhFUGy4ORQa/hfYHYHtmZgVE2J10rlv3wErgY9q8cEJ9+dk3D7yKVym+7UKvMVwmyISP1bh3+HTqFJW3yhN+0Lc5D2CIqdRyGhXscjRkD0UG9gm8hLU7U7aYjMaZbBF/vCM+eLp3wVVw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hc+5JryO; 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="hc+5JryO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD782C2BCB0; Tue, 12 May 2026 12:48:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778590130; bh=OVrD2uU4NRufk77u8IMJpZaCHHSv+Bt+lNUdd38Dz5Y=; h=Subject:To:Cc:From:Date:From; b=hc+5JryOGUp8DRu6SeWWNQzJ9vFs6ZS/G+IjsR2xQqT3h9TLW4Y8V9RTV+gn260TY M8y0o97cObJtimiHIeVlqvOZDEdXhR4WLFjJW9h5PqEDXbBfNjuSgNHeQngV/iZtht 9aBPoLpXy4pSJ//92ULiJA1ZkNKfjXKtoMAXUTvc= Subject: FAILED: patch "[PATCH] spi: tegra114: fix controller deregistration" failed to apply to 6.6-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: <2026051237-celestial-undone-3e61@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 9c9c27ff2058142d8f800de3186d6864184958de # git commit -s git send-email --to '' --in-reply-to '2026051237-celestial-undone-3e61@gregkh' --subject-prefix 'PATCH 6.6.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