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 1324C37474A for ; Fri, 15 May 2026 07:39:04 +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=1778830745; cv=none; b=DttrurNSn96pr0GcnNieJp4AOSmL5s8btUSRGjDizMpiK5nGdVfARa6H0TRU/DhZSvj6A3su4XBVyAAAyyu+tCpgE2nR5lroaKtISs9GEyXCuEAzKcT2upcpkAI0z6VRKURje+hOEZXZiWcGVn1bRiKhY1HRiTfuvKsP2X3IqJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778830745; c=relaxed/simple; bh=7Ahv1SYeJb0Pi8jXXe3rz5y39td0U9M1Ahz5ejpwco8=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=c6RlF/E/zGeoy+b+yN7mxRV2YuN2yPF0MySy17h2qpS2gyhLPyD49kLnDo3HldNBXppbciIzZbaizWmqJh3T8jngqCql1poV7xW1BWo3Y5pL6CeO3x3uG9aDeO3pWKgFJ3z0HXz3+FvTsqscLiqPmLKZNs+df0g517ijILUcBqg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FjvqP9ru; 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="FjvqP9ru" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51A5EC2BCB8; Fri, 15 May 2026 07:39:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778830744; bh=7Ahv1SYeJb0Pi8jXXe3rz5y39td0U9M1Ahz5ejpwco8=; h=Subject:To:Cc:From:Date:From; b=FjvqP9rucxV6bI5eaVaI679o5in/x/Njp9aA0jejlMNqYEbElPnTH23zl9C5HQgL/ IzW819l4pVRsv4NtHhCQ4U6J8O9BLLR3nHPuFDLAo4fu8Rs9iBB6iqQnB0rvfnU4B3 w9hDYzhU+hhaNBWKzXSLCJzolLFEpp7KuQ0RE1DA= Subject: FAILED: patch "[PATCH] spi: s3c64xx: 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:00 +0200 Message-ID: <2026051500-scribe-coyness-349f@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 c1446b61e472da24d1547525193467b4bea4a7cb # git commit -s git send-email --to '' --in-reply-to '2026051500-scribe-coyness-349f@gregkh' --subject-prefix 'PATCH 5.15.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)) {