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 ABAAF3E4C6E for ; Fri, 15 May 2026 08:31:23 +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=1778833883; cv=none; b=SnYgzC8lyFHb626V1mcglhLfdyHdvxi3cIuWSmjDIoAJ8gPfjA9sYdU2/XXtkC39XUET9I2MirjRsUdIgE3LArU+8GnVt1kHVUdU0Mfl3QSsXWO0xeCvjtTNR2SmKgA29Jdi5CagpWc54e2NTHjt6+Xefi72FyyEHg7VBU5TfsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778833883; c=relaxed/simple; bh=UQKF4nuDdRhf1puLeJfpaeBbVqIECnnG62/xi9rz2yw=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=gGYurLCv13XEQYiTrKYKPPaAiILTNj/cTHbSHGYPIeDCd8LlqufhVb2KEpm1/3tLM6sQglejiXkMARELz1mP1v2iMcJ+7TxmyygFE6ng+TtlQ0NLG4ExGUNdFuy08XPbelhGW5OzG/pxIwpheo7ZPbgKYP81dp1WQ2WJCrmvKcE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0uZ+9XPk; 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="0uZ+9XPk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2202DC2BCB0; Fri, 15 May 2026 08:31:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778833883; bh=UQKF4nuDdRhf1puLeJfpaeBbVqIECnnG62/xi9rz2yw=; h=Subject:To:Cc:From:Date:From; b=0uZ+9XPkbyFo34Tbnz3Zh6yvGCOY6NTjWDym7oi6lo62POIf89lsfl28LSa1grGVO ZCgAB6I1W0CFRshL6uY6iI4zqaerxfIyqUBmKRKPVs3m4scemtsoqhEpIzo1wzGIAt XNREdyRJFKEVhQnHbMGKx+QLVmqgPhP6477gPfhM= Subject: FAILED: patch "[PATCH] spi: mxic: fix controller deregistration" failed to apply to 5.10-stable tree To: johan@kernel.org,broonie@kernel.org,masonccyang@mxic.com.tw Cc: From: Date: Fri, 15 May 2026 10:31:09 +0200 Message-ID: <2026051509-stir-multitude-96f9@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 adbc595e272052181d40ec307a4c5ba98571b0fe # git commit -s git send-email --to '' --in-reply-to '2026051509-stir-multitude-96f9@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From adbc595e272052181d40ec307a4c5ba98571b0fe Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 14 Apr 2026 15:43:16 +0200 Subject: [PATCH] spi: mxic: fix controller deregistration Make sure to deregister the controller before disabling underlying resources like clocks (via runtime pm) during driver unbind. Fixes: b942d80b0a39 ("spi: Add MXIC controller driver") Cc: stable@vger.kernel.org # 5.0: cc53711b2191 Cc: stable@vger.kernel.org # 5.0 Cc: Mason Yang Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260414134319.978196-6-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-mxic.c b/drivers/spi/spi-mxic.c index f9369c69911c..b0e7fc828a50 100644 --- a/drivers/spi/spi-mxic.c +++ b/drivers/spi/spi-mxic.c @@ -832,9 +832,10 @@ static void mxic_spi_remove(struct platform_device *pdev) struct spi_controller *host = platform_get_drvdata(pdev); struct mxic_spi *mxic = spi_controller_get_devdata(host); + spi_unregister_controller(host); + pm_runtime_disable(&pdev->dev); mxic_spi_mem_ecc_remove(mxic); - spi_unregister_controller(host); } static const struct of_device_id mxic_spi_of_ids[] = {