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 A0BDD3E3173 for ; Fri, 15 May 2026 07:37:55 +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=1778830675; cv=none; b=QCLWqb4gzlCLpJulIvNy7O0LyC7DfQl3x/QB/b1PvhbFED79gFURBaXtxiVBvPZByzHk9eneAM9Hvq1S7wXw5WqGS7QOSVlHSR4zUL4Y2HZ3EzEGdGHbVOrP6C+dRqEsXFpXSqt1PmrgyIRUxuLs7w1S0pNUOT2InlMDzgeHr0M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778830675; c=relaxed/simple; bh=2rd535qVJBfvXeWNLzyz3WUKQyuNVs2MCX7jZHimlxs=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=bZDKSNHsVeK2UgAugi6/2SmjWv0AvsxY1Gp4kiFkuD78CLnzJyXCZPkC8PeIyGIPcb0IVPy3KlmU/pzofmeNTGUb/WPMNzr6YiSM7m1CwXKyAjDN0sP7GLo7nWcqaVzY1wzxnyod536SrsEaM42PS4LfPzKsWPfzUFY7l9iJve4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fFqmZ5n9; 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="fFqmZ5n9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1091EC2BCC7; Fri, 15 May 2026 07:37:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778830674; bh=2rd535qVJBfvXeWNLzyz3WUKQyuNVs2MCX7jZHimlxs=; h=Subject:To:Cc:From:Date:From; b=fFqmZ5n9vL66McpRMDQWqnm30ZTWvRIhGNua6pEzuzlPTtrDsOPDXxLLGqgXuKhlt fhLBoPE2WojRkLx+75XCbe4aJsQXz6grW9Ufbic8U288DWYb/Gv4gppshjBwhQAvS+ BJudYuHfZ23Z1hBME8gWhxCJwVvRxvAhTB4x0V9A= Subject: FAILED: patch "[PATCH] spi: mt65xx: fix controller deregistration" failed to apply to 6.6-stable tree To: johan@kernel.org,broonie@kernel.org,leilk.liu@mediatek.com Cc: From: Date: Fri, 15 May 2026 09:37:50 +0200 Message-ID: <2026051550-parkway-shack-c0fb@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 2ad30599cccc572ba2fc11010670eb6e01ea6bfc # git commit -s git send-email --to '' --in-reply-to '2026051550-parkway-shack-c0fb@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 2ad30599cccc572ba2fc11010670eb6e01ea6bfc Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 10 Apr 2026 10:17:31 +0200 Subject: [PATCH] spi: mt65xx: fix controller deregistration Make sure to deregister the controller before disabling underlying resources like clocks during driver unbind. Fixes: a568231f4632 ("spi: mediatek: Add spi bus for Mediatek MT8173") Cc: stable@vger.kernel.org # 4.3: ace145802350 Cc: stable@vger.kernel.org # 4.3 Cc: Leilk Liu Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260410081757.503099-2-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 0368a26bca9a..96f8555be983 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi-mt65xx.c @@ -1325,7 +1325,7 @@ static int mtk_spi_probe(struct platform_device *pdev) pm_runtime_enable(dev); - ret = devm_spi_register_controller(dev, host); + ret = spi_register_controller(host); if (ret) { pm_runtime_disable(dev); return dev_err_probe(dev, ret, "failed to register host\n"); @@ -1340,6 +1340,8 @@ static void mtk_spi_remove(struct platform_device *pdev) struct mtk_spi *mdata = spi_controller_get_devdata(host); int ret; + spi_unregister_controller(host); + cpu_latency_qos_remove_request(&mdata->qos_request); if (mdata->use_spimem && !completion_done(&mdata->spimem_done)) complete(&mdata->spimem_done);