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 C10DE3EFD1A for ; Fri, 15 May 2026 07:37:47 +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=1778830667; cv=none; b=SExshxFen3b9hor5jWvOpWfKpyyfRwA0GsYXMGbQgB1wWLxaPPuA+80w0AKcM7W5gLp2H45JTu0i1GAXha/q4yKloaPrD7f+SFV0zD7NrhDMwJ2c5KRok3gGlWCgwUb9sO11V4kzMQ15PCWrEGcM+YXk836BGvlqgSBsH+25r/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778830667; c=relaxed/simple; bh=JXBMtpm9usS7JHpKSyarxEx3gf+Mjva8S+ae/84i/9A=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=AhAJ8z3NW60/AC13dMc9IhX3VwacdxC7SKAGT5KAUas1WmkWZxqMRowAWmyoffLWivQ98k4XUzIlTqlD6x2wzfVd6cUhIFp+0fmFyRQ4neCZjVZG8ZJt9yGluu/EhtxTv0LIByICPsyDvAMXTYGrjpHradRU4J7ovprBF+bLI+c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Z7Vab03j; 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="Z7Vab03j" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20ABDC2BCB8; Fri, 15 May 2026 07:37:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778830667; bh=JXBMtpm9usS7JHpKSyarxEx3gf+Mjva8S+ae/84i/9A=; h=Subject:To:Cc:From:Date:From; b=Z7Vab03jVzqJJ4Gqt9Epv8RKKZPEsQstWORymexnEOuQPsuvaeUK8lbRl19L7vGMe vPBlTJk4Mfa71pT4YAVek0VVNLkg15nZBPSp75YfdE9NPkRQFEdFk//2h3E0Q9lfXP JhR9MrPDH2DX0ZK2L1ShbR923/hdkHyfiV6jWWe8= Subject: FAILED: patch "[PATCH] spi: mxs: fix controller deregistration" failed to apply to 5.15-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-parchment-portly-dec4@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.15-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.15.y git checkout FETCH_HEAD git cherry-pick -x 8b0d0011af20fb547aa67a1cefbf320992fd5e92 # git commit -s git send-email --to '' --in-reply-to '2026051540-parchment-portly-dec4@gregkh' --subject-prefix 'PATCH 5.15.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 = {