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 BE606314B96 for ; Fri, 15 May 2026 07:37:36 +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=1778830656; cv=none; b=MXWudcZSce5GamNKynkp4eYMiQRXZtw5kvy1BsE6bd39h6p6+YMBB3RuHZnxReFevDqWnpvjw5iG6UfWNvUmTJpPR5PzlhV4mPynVdapbfm4+d9vsi4wXC8ClW4hMW/ePGU7UhTq7PS2MyyjAHT9O/ODjXoELdoiuwiMSbSVYBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778830656; c=relaxed/simple; bh=qMNowoGMfwO9xelSzm+bkylC+QioKqso2raN3kFGhvQ=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=JtyqPgfNij2/hyZbG/5c5rxFWRonbgKpVJybyQET8DpCCkKx3SnVEd3r630fLl598xrkc/04zp/Ur59NrSOGpLboq35nP9J74Yqev9OBSX5IV7fw3KegSXpWp8aZ6+1Kxkxj3CKtnKHahTPsOH8IWSfR1be57Neg9LG4S/2qUXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IFSGVdEF; 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="IFSGVdEF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE849C2BCB8; Fri, 15 May 2026 07:37:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778830656; bh=qMNowoGMfwO9xelSzm+bkylC+QioKqso2raN3kFGhvQ=; h=Subject:To:Cc:From:Date:From; b=IFSGVdEFoViyVigM5NJ6LRFxu0w0ZPSu+Mqi0+Z6pZfovyuhiWzm0fdQYn5zBLnTq piF1oxJ+HJ/7RQUfLPQB8TufQzdx0hd9Jz0xHEWiZKKAZuyuZzQtGvJ4rt2YhnSMWN ZMq99pZ0IxMyYsPmXYAoP1Pr3iu3vTZl5l9WY6fQ= Subject: FAILED: patch "[PATCH] spi: mxs: 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: Fri, 15 May 2026 09:37:40 +0200 Message-ID: <2026051540-playlist-kitty-2509@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 8b0d0011af20fb547aa67a1cefbf320992fd5e92 # git commit -s git send-email --to '' --in-reply-to '2026051540-playlist-kitty-2509@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 8b0d0011af20fb547aa67a1cefbf320992fd5e92 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 10 Apr 2026 10:17:33 +0200 Subject: [PATCH] spi: mxs: fix controller deregistration Make sure to deregister the controller before releasing underlying resources like DMA during driver unbind. Fixes: 33e195acf268 ("spi: mxs: 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-4-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index b3301c69e2de..0164e04d59a1 100644 --- a/drivers/spi/spi-mxs.c +++ b/drivers/spi/spi-mxs.c @@ -619,7 +619,7 @@ static int mxs_spi_probe(struct platform_device *pdev) if (ret) goto out_pm_runtime_put; - ret = devm_spi_register_controller(&pdev->dev, host); + ret = spi_register_controller(host); if (ret) { dev_err(&pdev->dev, "Cannot register SPI host, %d\n", ret); goto out_pm_runtime_put; @@ -650,11 +650,17 @@ static void mxs_spi_remove(struct platform_device *pdev) spi = spi_controller_get_devdata(host); ssp = &spi->ssp; + spi_controller_get(host); + + spi_unregister_controller(host); + pm_runtime_disable(&pdev->dev); if (!pm_runtime_status_suspended(&pdev->dev)) mxs_spi_runtime_suspend(&pdev->dev); dma_release_channel(ssp->dmach); + + spi_controller_put(host); } static struct platform_driver mxs_spi_driver = {