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 026553CF977 for ; Fri, 15 May 2026 07:39:07 +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=1778830748; cv=none; b=hQtD2Pa5fNSrAqFCxRgKly+CeRTqPsl33iJuIcAi2XOJB0zhO/vsXFs3pPAj9au6OthrI+AItKqsgYrqKZ1FrzNJh4yvreVKTw6UT9wQKQaXf88DFg7Hni3ZrUluxkkv1BcaY0H7S4oUCGkT1FXBwq83TwGjkK9hF3zN+slJEms= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778830748; c=relaxed/simple; bh=0+5WXnI59omtX6a/H7uUd9PgmTWh/9048KmNbEMpejo=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Z0FERM/dPk9y3vrqv2/dJFZQ1uAYXfuwnoiEJzrXZ2RXv2ccArXn5mXudeDTv/kefTZXCR5KK2I4fJWv5YLcS37Tz7eKadz+D1ow05+vOycVBBaWcWWfppQC54+EUED5TdcuhvwY7LKhXV8Y7F/4PZou9gSl0deh0JCuL8zrxuc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JNPFmQvS; 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="JNPFmQvS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2BCA7C2BCB8; Fri, 15 May 2026 07:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778830747; bh=0+5WXnI59omtX6a/H7uUd9PgmTWh/9048KmNbEMpejo=; h=Subject:To:Cc:From:Date:From; b=JNPFmQvSx5IQmUjdxb49GIjzoE5VeUcWENrSK67gfymSJ/WbECt1Bvb9qft6Jv+TX betmDzWjOtr73aGYBEK7uLi7/CKDmL1NFWaZnSYwieEycdu916Vzr7U/UzZy6Lxfmc Mhd/i5QgXB7uwY18THIjdakgdkTKU8cemBXDwm8k= Subject: FAILED: patch "[PATCH] spi: s3c64xx: 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:01 +0200 Message-ID: <2026051500-shining-overtime-436d@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 c1446b61e472da24d1547525193467b4bea4a7cb # git commit -s git send-email --to '' --in-reply-to '2026051500-shining-overtime-436d@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From c1446b61e472da24d1547525193467b4bea4a7cb Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 10 Apr 2026 10:17:41 +0200 Subject: [PATCH] spi: s3c64xx: fix controller deregistration Make sure to deregister the controller before releasing underlying resources like DMA during driver unbind. Fixes: 91800f0e9005 ("spi/s3c64xx: Use managed registration") Cc: stable@vger.kernel.org # 3.13: 76fbad410c0f Cc: stable@vger.kernel.org # 3.13 Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260410081757.503099-12-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index ba85243d6d89..95b61264b679 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1369,7 +1369,7 @@ static int s3c64xx_spi_probe(struct platform_device *pdev) S3C64XX_SPI_INT_TX_OVERRUN_EN | S3C64XX_SPI_INT_TX_UNDERRUN_EN, sdd->regs + S3C64XX_SPI_INT_EN); - ret = devm_spi_register_controller(&pdev->dev, host); + ret = spi_register_controller(host); if (ret != 0) { dev_err(&pdev->dev, "cannot register SPI host: %d\n", ret); goto err_pm_put; @@ -1399,6 +1399,8 @@ static void s3c64xx_spi_remove(struct platform_device *pdev) pm_runtime_get_sync(&pdev->dev); + spi_unregister_controller(host); + writel(0, sdd->regs + S3C64XX_SPI_INT_EN); if (!is_polling(sdd)) {