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 0C2E53E4C6E for ; Fri, 15 May 2026 08:32:16 +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=1778833936; cv=none; b=IPtlu94swmhhJs+mFPxI0hW6Txx/xOZkYz9lx5x4q0/frctEoAFqMs9bDIVe9eVDZzcUJXFSPWiVLnHZqfLqw8bzgsYUyis4vHzYSRGD/iXtvYAWqWiydReGdNSTSEMjjLPmGTg6VTPVzVnE8v0nzQkFORbH2OGRRj4UIN2tbBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778833936; c=relaxed/simple; bh=Aksa+Cpd900MX/nwgxckFPtBJIoZwNPZZUIeua0WWDE=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=u1ffcwZfUMs1qiacRlW1N1WtxHayIIfBpyNoezQ2yus+qyFjBA44YG+km5n4P2ZmZ4pYRgEjfxFKctyLd1jSA1FYZwtByr8p43CZb0KzGuLval5MEuDjP7NyqIEel7seryqPfepUVIh0zJdI+Co7awrT5YxkjsE5wTG8yzs8Rgw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iYGcNruA; 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="iYGcNruA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C509C2BCB0; Fri, 15 May 2026 08:32:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778833935; bh=Aksa+Cpd900MX/nwgxckFPtBJIoZwNPZZUIeua0WWDE=; h=Subject:To:Cc:From:Date:From; b=iYGcNruA/1WkkGjJoiY+/8sddNfm315W+U3groSEribQostRZ9ZiASSKgHNW1qxlk DXdSlBZp7pbIgv1yW7E2fUdNnHi3q+n7NKrojjgdYB1WM1raT+uCpv1lfYJtYooqnS doF8vw6JhpFUgPe2a2a8X26k4cXt+A9QGJelfHOM= Subject: FAILED: patch "[PATCH] spi: mpc52xx: fix controller deregistration" failed to apply to 6.6-stable tree To: johan@kernel.org,broonie@kernel.org,grant.likely@secretlab.ca,l.fu@pengutronix.de Cc: From: Date: Fri, 15 May 2026 10:32:20 +0200 Message-ID: <2026051519-yen-scrubber-90f2@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 0f997fdae819a8c2cc83bd4ff7d935ad76c727c9 # git commit -s git send-email --to '' --in-reply-to '2026051519-yen-scrubber-90f2@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 0f997fdae819a8c2cc83bd4ff7d935ad76c727c9 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 14 Apr 2026 15:43:14 +0200 Subject: [PATCH] spi: mpc52xx: fix controller deregistration Make sure to deregister the controller before disabling and releasing underlying resources like interrupts and gpios during driver unbind. Fixes: 42bbb70980f3 ("powerpc/5200: Add mpc5200-spi (non-PSC) device driver") Fixes: b8d4e2ce60b6 ("mpc52xx_spi: add gpio chipselect") Cc: stable@vger.kernel.org # 2.6.33 Cc: Grant Likely Cc: Luotao Fu Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20260414134319.978196-4-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/spi/spi-mpc52xx.c b/drivers/spi/spi-mpc52xx.c index 05bbd3795e7d..823b49f8ece2 100644 --- a/drivers/spi/spi-mpc52xx.c +++ b/drivers/spi/spi-mpc52xx.c @@ -517,6 +517,8 @@ static void mpc52xx_spi_remove(struct platform_device *op) struct mpc52xx_spi *ms = spi_controller_get_devdata(host); int i; + spi_unregister_controller(host); + cancel_work_sync(&ms->work); free_irq(ms->irq0, ms); free_irq(ms->irq1, ms); @@ -525,7 +527,6 @@ static void mpc52xx_spi_remove(struct platform_device *op) gpiod_put(ms->gpio_cs[i]); kfree(ms->gpio_cs); - spi_unregister_controller(host); iounmap(ms->regs); spi_controller_put(host); }