Re: [PATCH 2/2] drivers/clocksource/mediatek: Ack and disable interrupts on shutdown

2021-03-18 Thread Evan Benn
Hello, There is a suspend failure on mt8173 chromebooks that use this timer. The failure shows as an errno: -95 failure with none device. I tracked this down to the arm trusted firmware aborting the suspend due to this timer having a pending IRQ, due to not being disabled during suspend /

[PATCH 2/2] drivers/clocksource/mediatek: Ack and disable interrupts on shutdown

2021-03-17 Thread Evan Benn
set_state_shutdown is called during system suspend after interrupts have been disabled. If the timer has fired in the meantime, there will be a pending IRQ. So we ack that now and disable the timer. Without this ARM trusted firmware will abort the suspend due to the pending interrupt. Now always