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 EA11D36495E for ; Fri, 15 May 2026 07:40:34 +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=1778830835; cv=none; b=o7qMMrlykJTIpDeWDcsHR3I2uha0ptFZNa+1KaS9ojs3Gr6W6jpombXXBA0/YbmTwsqVFlWaX8/xIEl0teulEHPjI2IXTA+LfTgGkGafh1lGRnIplp77aPQxG+mGTjzTfUY4ZRXNXJL5CwSl0VQa3DUvsCLfTxhhqLdaNinyQNs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778830835; c=relaxed/simple; bh=MK1XEKoGUt2EGPyi1e9Pm07C0kzygkZZrTDj4i+sqfI=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=GLpAUbZ3dDPBUkx0te+X3VQ/Lhp6oy5BsBKHNK8/UlXKjdwdCxtEQQOydGjhkq2xG23i28IqjPN/lgnn9TIV7a5ZF+rr3XeIl0sOKnF4LPCm5ThYUWgLglbKNYeee7XQpfkFPoL2xPv+JNpPnBdJiJT/6hHWlGEiWF/WeqHUrbE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FmrY7yRJ; 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="FmrY7yRJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45356C2BCB0; Fri, 15 May 2026 07:40:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778830834; bh=MK1XEKoGUt2EGPyi1e9Pm07C0kzygkZZrTDj4i+sqfI=; h=Subject:To:Cc:From:Date:From; b=FmrY7yRJ6xiot4YTtD5RZ45Q7VlcrObprDw6LHOTuvx39kCaF/CBfZLoHEVNjYTVy iOUQTNGGxhEOPkWQgqX9t5Cz/BEncr9STlxq6IWN3di2osfZVxNuvTPFWWPKhqTtJk Xa4oSFh/hURA2D/ahrEHBcjolixrdEbRr1CsNysw= Subject: FAILED: patch "[PATCH] spi: pl022: fix controller deregistration" failed to apply to 5.10-stable tree To: johan@kernel.org,broonie@kernel.org,linusw@kernel.org Cc: From: Date: Fri, 15 May 2026 09:40:30 +0200 Message-ID: <2026051529-landless-safehouse-c89a@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 994b33366be9148240690e3e94bffe17c4d89458 # git commit -s git send-email --to '' --in-reply-to '2026051529-landless-safehouse-c89a@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 994b33366be9148240690e3e94bffe17c4d89458 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 10 Apr 2026 10:17:38 +0200 Subject: [PATCH] spi: pl022: fix controller deregistration Make sure to deregister the controller before releasing underlying resources like DMA during driver unbind. Fixes: b43d65f7e818 ("[ARM] 5546/1: ARM PL022 SSP/SPI driver v3") Cc: stable@vger.kernel.org # 2.6.31 Cc: Linus Walleij Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260410081757.503099-9-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index bd1d28caa51e..9c0211f94fd0 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -1956,7 +1956,7 @@ static int pl022_probe(struct amba_device *adev, const struct amba_id *id) /* Register with the SPI framework */ amba_set_drvdata(adev, pl022); - status = devm_spi_register_controller(&adev->dev, host); + status = spi_register_controller(host); if (status != 0) { dev_err_probe(&adev->dev, status, "problem registering spi host\n"); @@ -1997,6 +1997,10 @@ pl022_remove(struct amba_device *adev) if (!pl022) return; + spi_controller_get(pl022->host); + + spi_unregister_controller(pl022->host); + /* * undo pm_runtime_put() in probe. I assume that we're not * accessing the primecell here. @@ -2008,6 +2012,8 @@ pl022_remove(struct amba_device *adev) pl022_dma_remove(pl022); amba_release_regions(adev); + + spi_controller_put(pl022->host); } #ifdef CONFIG_PM_SLEEP