FAILED: patch "[PATCH] media: ene_ir: Ensure teardown is done in the correct order" failed to apply to 6.6-stable tree
Subsystems (4)
Sasha Levin
maintainerThe 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 <[email protected]>.
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 ae6cfbad7ca346b78f4cdac38438bbfaed8c18a0
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '[email protected]' --subject-prefix 'PATCH 6.6.y' 'HEAD^..'
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From ae6cfbad7ca346b78f4cdac38438bbfaed8c18a0 Mon Sep 17 00:00:00 2001
From: Sean Young <[email protected]>
Date: Tue, 1 Sep 2026 11:29:02 +0100
Subject: [PATCH] media: ene_ir: Ensure teardown is done in the correct order
The timer can be re-armed from the irq, so ensure that the timers are deleted after the irq and that we only free the rc device once we are sure that the irq has been silenced.
--- drivers/media/rc/ene_ir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/rc/ene_ir.c +2 -2
@@ -1103,15 +1103,15 @@ static void ene_remove(struct pnp_dev *pnp_dev)unsigned long flags;rc_unregister_device (dev->rdev); -timer_delete_sync (&dev->tx_sim_timer);spin_lock_irqsave (&dev->hw_lock, flags);ene_rx_disable (dev);ene_rx_restore_hw_buffer (dev);spin_unlock_irqrestore (&dev->hw_lock, flags); -rc_free_device (dev->rdev);free_irq (dev->irq, dev); +timer_delete_sync (&dev->tx_sim_timer);release_region (dev->hw_io,ENE_IO_SIZE ); +rc_free_device (dev->rdev);kfree (dev); }
Signature · 1 line
2.53.0
Sasha Levin
maintainerPATCH 1/1 media: ene_ir: Ensure teardown is done in the correct order
From: Sean Young <[email protected]>
[ Upstream commit ae6cfbad7ca346b78f4cdac38438bbfaed8c18a0 ]
The timer can be re-armed from the irq, so ensure that the timers are deleted after the irq and that we only free the rc device once we are sure that the irq has been silenced.
--- drivers/media/rc/ene_ir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/rc/ene_ir.c +2 -2
@@ -1106,15 +1106,15 @@ static void ene_remove(struct pnp_dev *pnp_dev)unsigned long flags;rc_unregister_device (dev->rdev); -del_timer_sync (&dev->tx_sim_timer);spin_lock_irqsave (&dev->hw_lock, flags);ene_rx_disable (dev);ene_rx_restore_hw_buffer (dev);spin_unlock_irqrestore (&dev->hw_lock, flags); -rc_free_device (dev->rdev);free_irq (dev->irq, dev); +timer_delete_sync (&dev->tx_sim_timer);release_region (dev->hw_io,ENE_IO_SIZE ); +rc_free_device (dev->rdev);kfree (dev); }
Signature · 1 line
2.53.0