On Wed, Aug 18, 2021 at 11:27:41AM +0200, Sean Nyekjaer wrote: > This add ways for the SoC to wake from accelerometer wake events. > > In the suspend function we skip disabling the sensor if wakeup-source > and events are activated. > If the buffer is enabled it will be deactivated before suspend, as the > buffer is quite small. > > Signed-off-by: Sean Nyekjaer <sean@xxxxxxxxxx> I notice when using IRQ_TYPE_LEVEL_LOW, the IRQ will loop on resume until wdg is restarting the system. If I use IRQ_TYPE_EDGE_FALLING it will only fail once with -13 EACCES. Maybe I2C isn't up and running when it tries to handle the irq. /Sean