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 C781B3EB816 for ; Fri, 15 May 2026 08:31:20 +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=1778833880; cv=none; b=eVJulzcROqwpgNMhnWS7ydmFUEg6fZGn6qXMLLjPuBzmZa/iYxqs5OWei3HPQRE6IO7NtmQ1HBpvlZ4qfmyLJruPEnBc3gbvQvFhpX4opWJrgTATHq9/pUxkwn7MywNhMUnFT8BDqhVcBbdfNtUE4rqeS4N5PF6fiUPTkhRjSVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778833880; c=relaxed/simple; bh=d2RfSxO6bCOpWxlknFQsIBqcvMxyT4hf/eVB3Vnc44s=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=DCCIDZjCCscNQ4zUTx6q+87oKCryaS6r1RWRGI8ejOGnFXtN/OKfm3l3IEWV3hi6GMWkbQjPDLCErsvPWiNvoFJMVn5sefVb/9ma1C9T9obkPv91FinQDjAt8gvR6hymoECBP0USxrapgQHCtu30s1kSm0kMyNKS5fPcyE82sfM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xLKCvW/u; 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="xLKCvW/u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56C8CC2BCB0; Fri, 15 May 2026 08:31:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778833880; bh=d2RfSxO6bCOpWxlknFQsIBqcvMxyT4hf/eVB3Vnc44s=; h=Subject:To:Cc:From:Date:From; b=xLKCvW/uvvYPxsUXpUfce0DA2KDlTzi6HjJAh5aQgbTzj0gwdYLE+A/AaWRWrJzjW iULTQ2rPhfYQ2fDYfhVyZg2Ca+CtbM+kH6mbTVPomnMEiPlZ4a8/fBziCqILhNvfRg xLI0aNDW8tFXTIKaXejUVjrb6+k5i9jg6mPN9Bx8= Subject: FAILED: patch "[PATCH] spi: mxic: fix controller deregistration" failed to apply to 5.15-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-finite-arise-4dbd@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 adbc595e272052181d40ec307a4c5ba98571b0fe # git commit -s git send-email --to '' --in-reply-to '2026051509-finite-arise-4dbd@gregkh' --subject-prefix 'PATCH 5.15.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[] = {