Re: [PATCH v2] Input: serport - defer write wakeups to a worker
From: Dmitry Torokhov
Date: Wed Oct 28 2026 - 13:11:51 EST
Hi James,
On Wed, Oct 28, 2026 at 01:14:19AM -0600, James Hilliard wrote:
> @@ -54,6 +56,11 @@ static int serport_serio_open(struct serio *serio)
> guard(spinlock_irqsave)(&serport->lock);
I changed this to scoped_guard() and applied.
> set_bit(SERPORT_ACTIVE, &serport->flags);
>
> + if (serio->drv->write_wakeup) {
> + enable_work(&serport->write_wakeup);
> + set_bit(TTY_DO_WRITE_WAKEUP, &serport->tty->flags);
> + }
> +
> return 0;
> }
Thanks.
--
Dmitry