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 E30E83CF977 for ; Fri, 15 May 2026 07:39:27 +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=1778830768; cv=none; b=kBfwBq6/ZtztY0fWJKFb2yHRqVoiE1EnaQi54kZQchSHPq5/1p6Y6VqpgKbfw0weoEqFeUnABgWPFIejXXv0E48WPp2RHfZmP9pGz9tUTWH+ahDZsTLqTHBFM6eoZoatLdWNVBdzFnIxR07oKWNwq2amVY70lIRcxHrhAqbxB9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778830768; c=relaxed/simple; bh=YFWU/kmqxUsMigHzjfXiXBSljGlhUpS/RGmvHFQ9wH8=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=tKXlZcL5PhuyQD2bfRShRiG4WXkeTRyOumI/WE7dW4aLJUNK+3CBfpWF4enWzyxg0+veaQthzjW5CELWAzXpfnpXPndT/t05ygA0x9iNI9jMTHU5ECE+RCYnNUbYRkSGo5os/xdk4Q6ok5RxPNAlnWBndxjb5+20KsgoOqMlBu0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XcPZj82L; 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="XcPZj82L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1813C2BCB8; Fri, 15 May 2026 07:39:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778830767; bh=YFWU/kmqxUsMigHzjfXiXBSljGlhUpS/RGmvHFQ9wH8=; h=Subject:To:Cc:From:Date:From; b=XcPZj82LRmJT+C3dl1lWNFNPtervyJbGm7ZZiz10KaLwSOivPAiSClof/E4Qr1a5R GSf7itfEmJD7fxsuaO3u3aP0EZkLljVbISZBlQHrkHVRFl5s788UORm4psswDyK3mo W2j8cSYe/nXLfSkykcKuOc3B/CDBHJGjKu82MWQY= Subject: FAILED: patch "[PATCH] spi: omap2-mcspi: fix controller deregistration" failed to apply to 5.10-stable tree To: johan@kernel.org,broonie@kernel.org Cc: From: Date: Fri, 15 May 2026 09:39:25 +0200 Message-ID: <2026051525-endorse-nuptials-b105@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.10-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.10.y git checkout FETCH_HEAD git cherry-pick -x fb45f95c377e4a4bdece2c5e17643b459c9c13e7 # git commit -s git send-email --to '' --in-reply-to '2026051525-endorse-nuptials-b105@gregkh' --subject-prefix 'PATCH 5.10.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 */