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 10E5D241139 for ; Fri, 15 May 2026 07:38:56 +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=1778830737; cv=none; b=o0WV3bN6XmgFcUxjTvn+dTckVhgMTQyIa0sDK6e5TedH0DFsMshi8a3XdL4RukLgcondLEs6dhPo/w3DwdUPIP9H+YjKByDL9zM06tXmsmKzvDDSNl4JlnRxf1HNaSMjnN0bxh6MvHUiML0dAtUoDPLVXBerWNEqQDEa70NJNnM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778830737; c=relaxed/simple; bh=R2qW86fl4J93oHStd+2In1laWwWjZEeiirNDOONbeoI=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=naQ0h8ie7bnRDf+Dkjdk/8598jRM7i77ZdtckDOEqFuyzgmrXbdSInoZbO6PWWqqzBGwte5bFK2EZtJzTaTKjIv+/WJ96TqfBT7kyiE8KWwYeX4RBktH+wTp3k3CvszMi+5mmh6FxvM01yd+bDBMRFaFYtSO9CnJb9lG5HXOhGY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DASPFpvJ; 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="DASPFpvJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45118C2BCB0; Fri, 15 May 2026 07:38:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778830736; bh=R2qW86fl4J93oHStd+2In1laWwWjZEeiirNDOONbeoI=; h=Subject:To:Cc:From:Date:From; b=DASPFpvJ6gUW9D944oS5+lOf2S18hu+3cnQGecb4d9dZWsnx3CsKCd9MJLEKdlt6f 1lOX/Mb5oaO3U29CVZJ6G+ERp94cJLaTDEb2c9iN9uoxNIKBnoY/omWV63kIgcoXol Eu79eWM4wWEJb6YzjOHcwyTn8Mc0oGY46bKH224k= Subject: FAILED: patch "[PATCH] spi: s3c64xx: fix controller deregistration" failed to apply to 6.1-stable tree To: johan@kernel.org,broonie@kernel.org Cc: From: Date: Fri, 15 May 2026 09:39:00 +0200 Message-ID: <2026051500-paying-postal-ba92@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 6.1-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-6.1.y git checkout FETCH_HEAD git cherry-pick -x c1446b61e472da24d1547525193467b4bea4a7cb # git commit -s git send-email --to '' --in-reply-to '2026051500-paying-postal-ba92@gregkh' --subject-prefix 'PATCH 6.1.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)) {