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 4E9DE1A2C04 for ; Fri, 15 May 2026 08:32:29 +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=1778833949; cv=none; b=Bfm404DrfjG4xEANjitPdbRk1VCt0g2aMihcSaokacpv4iSjiaRhEyHTvmjD/97gok3VAgwfuUWfRKqUIVjxehMHOHilxCXAgCZSapMiUNG6+KYr5ALetVN5mlpHJ3CAep47rZtT10xedxRXukZUUFXFIBGv6l2ZOYhWhNALqSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778833949; c=relaxed/simple; bh=CxHXH2gxGf9J+nUXwIZaDj0ZN1cgZiH0JU+C6nsBST8=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=eWtG9vsPO6RYf2/ds4CuP9Qvj59ZTUEutnOpyNznP5HfZD4xwjOGY5zNEJq+TZHxol0LEkfixgiTHcQ8XvDvbzUd/yQ91iQ7lJSLXwLQiLvPQew7X/nRMYC9L7/bUfVybd+AXCqTIgJm/MKEvUPtPPiH4NgiruwNjVcYhwAwdZE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uFLJu7Zd; 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="uFLJu7Zd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3218C2BCB0; Fri, 15 May 2026 08:32:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778833949; bh=CxHXH2gxGf9J+nUXwIZaDj0ZN1cgZiH0JU+C6nsBST8=; h=Subject:To:Cc:From:Date:From; b=uFLJu7ZdC9hbA+RB8DGaLlZu5fopGEbDjszQYr1+rzrXfqTClGPNtl01dbR9psNYK 3jvNeTs+do0qzkisARvXL41iTHjPFg/dW+tNxNoL0IdNQGaaT2icCvFPWZrq+2MMdq ZFgcFiyjBkmyD+GYrsbj70oyN0PriIZ+42zg0+wU= Subject: FAILED: patch "[PATCH] spi: mpc52xx: fix controller deregistration" failed to apply to 5.10-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: <2026051520-capsize-radiator-d2cd@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 0f997fdae819a8c2cc83bd4ff7d935ad76c727c9 # git commit -s git send-email --to '' --in-reply-to '2026051520-capsize-radiator-d2cd@gregkh' --subject-prefix 'PATCH 5.10.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); }