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 76C6C2773C3 for ; Fri, 15 May 2026 05:28:42 +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=1778822922; cv=none; b=P38Lod3Otdqqxq1/LVXEaLh24Xt5joRzvkDmBtFBBg3cqg+9EZjNg3zfFNNx1LORf9JZBSUGze1xvx5vS+Jm/sHTKO8MdoDJrgSy/lWPJTCA39ENCuy4ozgtzGd9XcUNauvZtwriqRpaMLlG6Bp+/ifeJeMJqv5xLHuDxckrbjE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778822922; c=relaxed/simple; bh=JVaYE3kOIRKbLr1hv7+g4NnjBCQOtQp6P81w/tHSZyA=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=llyghttrw33dsEKWFW6KZP+V7vsECW5t/uly4Pg2/qBoYb8Pf+OTqlKxWCC1xJD8sdPwQfDCDYWltYbKJt6sk6JIO7fE216KYis+VoLrVDwJBzb/DnkbhyzPcDfsA3PG1Jp0AYcJhbXuNDzYH3BQ0zjLjV0jXW2qqB4KCdvWCiM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nZVECVtx; 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="nZVECVtx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C62EC2BCB0; Fri, 15 May 2026 05:28:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778822922; bh=JVaYE3kOIRKbLr1hv7+g4NnjBCQOtQp6P81w/tHSZyA=; h=Subject:To:Cc:From:Date:From; b=nZVECVtxAylyc1QX7EyJlt/RlGh/hOFqE+sglpZqZjXnUv1CA/t57wten5ADRNmBs tS0gDaoRc53LmG6j1FyH2ZEGgTlV1Rl3w+ghSXjtlehpF+veLKZH0eyvfPE5moXVD7 k/S3w4W7Fb61z2JVFDujppwVxTTH2v4yzSMAAXZY= Subject: FAILED: patch "[PATCH] spi: st-ssc4: fix controller deregistration" failed to apply to 6.6-stable tree To: johan@kernel.org,broonie@kernel.org,lee@kernel.org Cc: From: Date: Fri, 15 May 2026 07:28:46 +0200 Message-ID: <2026051546-fable-equator-195c@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.6-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.6.y git checkout FETCH_HEAD git cherry-pick -x 19857374010d06ca6a2f7c2c53464122eb804df0 # git commit -s git send-email --to '' --in-reply-to '2026051546-fable-equator-195c@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 19857374010d06ca6a2f7c2c53464122eb804df0 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 10 Apr 2026 10:17:47 +0200 Subject: [PATCH] spi: st-ssc4: fix controller deregistration Make sure to deregister the controller before disabling underlying resources like clocks during driver unbind. Fixes: 9e862375c542 ("spi: Add new driver for STMicroelectronics' SPI Controller") Cc: stable@vger.kernel.org # 4.0 Cc: Lee Jones Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260410081757.503099-18-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-st-ssc4.c b/drivers/spi/spi-st-ssc4.c index b173ef70d77e..9c8099fe6e19 100644 --- a/drivers/spi/spi-st-ssc4.c +++ b/drivers/spi/spi-st-ssc4.c @@ -349,7 +349,7 @@ static int spi_st_probe(struct platform_device *pdev) platform_set_drvdata(pdev, host); - ret = devm_spi_register_controller(&pdev->dev, host); + ret = spi_register_controller(host); if (ret) { dev_err(&pdev->dev, "Failed to register host\n"); goto rpm_disable; @@ -371,10 +371,16 @@ static void spi_st_remove(struct platform_device *pdev) struct spi_controller *host = platform_get_drvdata(pdev); struct spi_st *spi_st = spi_controller_get_devdata(host); + spi_controller_get(host); + + spi_unregister_controller(host); + pm_runtime_disable(&pdev->dev); clk_disable_unprepare(spi_st->clk); + spi_controller_put(host); + pinctrl_pm_select_sleep_state(&pdev->dev); }