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 163BE3F0748 for ; Fri, 15 May 2026 07:39:24 +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=1778830765; cv=none; b=liWN6AuJkkl4YIlyw0iLRrnZOg7XtRslEQvBIcrkN0aOlgf04cy9HkDa8lxosSiaAQJv+p+9iHMBbnROO3gZ3LNF+6BlOikRZpisqQsgg/OO6X9xXCAhW0yIq0xs3uHwH/eNYepMRmR85tY0m7qofEko3/4yz4ni9ksCmt5ep24= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778830765; c=relaxed/simple; bh=rq0+JCuDP/rQbn+ToSP3V1Role4MztSkoMfR6rDOeoU=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=sdChpefPRcuwHbW69VH8KBpMn9AeJYJ+ZUbItInPbRtHEkLyGxBv7zB+dqnboKPNn66wtwETtd9rvyw7sr//cTJS5NJU1xIEngLVaxAkLEPVhA046FZ6n31iMWWo7h/2W3uB185nZReAJe3Id2orl9N+2lyGqFL5WmtXPByUnjA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oGN3YwdT; 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="oGN3YwdT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0B2AC2BCB0; Fri, 15 May 2026 07:39:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778830764; bh=rq0+JCuDP/rQbn+ToSP3V1Role4MztSkoMfR6rDOeoU=; h=Subject:To:Cc:From:Date:From; b=oGN3YwdT66YPd/NkQ8LUYE9AXIanWkAJ1sil0S3MONZksJ/rfCJ8kifZh/L5GlacD YJqIA6+zfgnXoqzTSnIlv56JUxnT+u2yt6LaA7NkFll0H4AT78mzcr32JXHazr6qyv PNBemRDvyH6JPyL6+8IqymXoMuVpE/xC+WyP6Bsk= Subject: FAILED: patch "[PATCH] spi: omap2-mcspi: fix controller deregistration" failed to apply to 5.15-stable tree To: johan@kernel.org,broonie@kernel.org Cc: From: Date: Fri, 15 May 2026 09:39:25 +0200 Message-ID: <2026051525-return-guts-2dc8@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 fb45f95c377e4a4bdece2c5e17643b459c9c13e7 # git commit -s git send-email --to '' --in-reply-to '2026051525-return-guts-2dc8@gregkh' --subject-prefix 'PATCH 5.15.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From fb45f95c377e4a4bdece2c5e17643b459c9c13e7 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 10 Apr 2026 10:17:35 +0200 Subject: [PATCH] spi: omap2-mcspi: fix controller deregistration Make sure to deregister the controller before releasing underlying resources like DMA during driver unbind. Fixes: ccdc7bf92573 ("SPI: omap2_mcspi driver") Cc: stable@vger.kernel.org # 2.6.23 Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260410081757.503099-6-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index a3468e47e77d..56b30ff58771 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi-omap2-mcspi.c @@ -1592,7 +1592,7 @@ static int omap2_mcspi_probe(struct platform_device *pdev) if (status < 0) goto disable_pm; - status = devm_spi_register_controller(&pdev->dev, ctlr); + status = spi_register_controller(ctlr); if (status < 0) goto disable_pm; @@ -1613,11 +1613,17 @@ static void omap2_mcspi_remove(struct platform_device *pdev) struct spi_controller *ctlr = platform_get_drvdata(pdev); struct omap2_mcspi *mcspi = spi_controller_get_devdata(ctlr); + spi_controller_get(ctlr); + + spi_unregister_controller(ctlr); + omap2_mcspi_release_dma(ctlr); pm_runtime_dont_use_autosuspend(mcspi->dev); pm_runtime_put_sync(mcspi->dev); pm_runtime_disable(&pdev->dev); + + spi_controller_put(ctlr); } /* work with hotplug and coldplug */