Re: [PATCH 4/5] mfd: da9052: Disable IRQ wake on device removal
From: shao.mingyin
Date: Thu Nov 26 2026 - 23:16:56 EST
Hi Lee,
> Can't this be called after da9052_request_irq()?
Yes. In v2, the driver requests ADC_EOM first. It then calls
enable_irq_wake() in a separate statement and records whether the
parent IRQ accepted it. This removes wake cleanup from the ADC IRQ
failure branch.
disable_irq_wake() needs a matching successful enable. irq_set_irq_wake()
warns if the wake depth is already zero, so exit checks the recorded
result before dropping the reference.
Thanks,
Shao