[PATCH 2/2] Input: Touchscreen: tsc200x - delegate wakeup IRQ
From: phucduc . bui
Date: Tue Mar 10 2026 - 23:17:54 EST
Hi Dmitry,
> Sorry, but this just makes it all worse. There is no downside from
> letting the driver to control wakeup if it wants to, so I'd rather leave
> it as it was, at least for now.
Thanks you for your reply
I was thinking that the code might be simplified by removing
ts->wake_irq_enabled.
In resume(), we could just check device_may_wakeup(dev) before calling
disable_irq_wake(ts->irq). From what I can see, wake_irq_enabled is only
used there, so it seems redundant.
I don't have the hardware to test this right now, so I didn't try the
change myself.
Do you think it would make sense to remove this field?
Best regards,
Phuc