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 E0EA93932EE for ; Fri, 15 May 2026 08:31:37 +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=1778833898; cv=none; b=N241h8NpWeKARwwUvJ0/KqLot9661g9NWH2b6BtUGzmqyp8wLSt4vWpgWcnxTPhMz12V1DI9v0j2WgABtZmQ56uT5iav5kguNqLTSe4FfUnh7KqDsD0Vze9JTaZD2JA6lvlQBKjRIMAAxAMI3g4StEnvTGqG5q6SoCHhI9d8i+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778833898; c=relaxed/simple; bh=jr+iid4x/IrYHOe8XRJru2efYb+5ixzJ2m+NfQkg3Vs=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=jP1x2CRAOI/hM6LsWRucfekVP5WUoO/+PPbF4n6dwrHXKVweyScK7nR/pUfAhFo1FurcgkxdIX3+4A9R8qR8Vg6BEEQUn7YUclFhFZRnVLqSQWjr0nCcf49GcYlc+qvUtbURzUEr5Cdft0zirWQGZqwQrUCFyaQSpc0dNNG15SQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZksuPyxr; 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="ZksuPyxr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C1ADC2BCB0; Fri, 15 May 2026 08:31:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778833897; bh=jr+iid4x/IrYHOe8XRJru2efYb+5ixzJ2m+NfQkg3Vs=; h=Subject:To:Cc:From:Date:From; b=ZksuPyxrEuA6OoVn+WdTl1PNAIjBdMvQDs9qHgEBlawF6F9hGMr9VtyvZK5vWJJjM VuLJDKrT2JZyqjAjiScfdrndXQWfUjJR9wyBuYxmxvqLA3j3qTVE1j6eT1En4zDSsH anyhCwJ768cfWiBmkaql4bulO2p1z7ivU97lApRg= Subject: FAILED: patch "[PATCH] spi: orion: 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 10:31:24 +0200 Message-ID: <2026051524-repackage-democrat-7c3d@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 220f4f11104a7f83b71543ef0e48dde1da2bc5d3 # git commit -s git send-email --to '' --in-reply-to '2026051524-repackage-democrat-7c3d@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 220f4f11104a7f83b71543ef0e48dde1da2bc5d3 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 14 Apr 2026 15:43:17 +0200 Subject: [PATCH] spi: orion: fix controller deregistration Make sure to deregister the controller before disabling underlying resources like clocks during driver unbind. Fixes: 60cadec9da7b ("spi: new orion_spi driver") Cc: stable@vger.kernel.org # 2.6.27 Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260414134319.978196-7-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c index 7a2186b51b4c..c54cd4ef09bd 100644 --- a/drivers/spi/spi-orion.c +++ b/drivers/spi/spi-orion.c @@ -801,10 +801,15 @@ static void orion_spi_remove(struct platform_device *pdev) struct spi_controller *host = platform_get_drvdata(pdev); struct orion_spi *spi = spi_controller_get_devdata(host); + spi_controller_get(host); + + spi_unregister_controller(host); + pm_runtime_get_sync(&pdev->dev); clk_disable_unprepare(spi->axi_clk); - spi_unregister_controller(host); + spi_controller_put(host); + pm_runtime_disable(&pdev->dev); }