Re: [PATCH] firewire: core: clear sources of hardware interrupt at card removal

From: Takashi Sakamoto
Date: Tue Nov 11 2025 - 05:54:46 EST


On Sun, Nov 09, 2025 at 03:55:25PM +0900, Takashi Sakamoto wrote:
> Due to the factors external to the system, hardware events may still be
> handled while a card instance is being removed. The sources of hardware
> IRQs should be cleared during card removal so that workqueues can be safely
> destroyed.
>
> This commit adds a disable callback to the underlying driver operations.
> After this callback returns, the underlying driver guarantees that it
> will no longer handle hardware events.
>
> Signed-off-by: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>
> ---
> drivers/firewire/core-card.c | 3 +++
> drivers/firewire/core.h | 3 +++
> drivers/firewire/ohci.c | 44 +++++++++++++++++++++++++++++-------
> 3 files changed, 42 insertions(+), 8 deletions(-)

Applied to for-next branch.


Regards

Takashi Sakamoto