On Wed, Sep 8, 2021 at 6:29 PM Peter Rosin <peda@xxxxxxxxxx> wrote: > On 2021-09-08 13:00, Jacopo Mondi wrote: > > On Mon, Sep 06, 2021 at 01:03:52AM +0200, Peter Rosin wrote: ... > struct i2c_msg msg[3] = { > { /* wakeup */ > .addr = 0x68, > .flags = I2C_M_RD | I2C_M_IGNORE_NAK, > .len = 0, > }, { /* write register number */ I'm wondering if device will have enough time in between to actualle be woken up. I believe the waking up latency must be considered as well as known 15ms suspending one. > .addr = 0x68, > .flags = 0, > .len = 1, > .buf = ®, > }, { /* read register contents */ > .addr = 0x68, > .flags = I2C_M_RD, > .len = 17, > .buf = buf, > }, > }; -- With Best Regards, Andy Shevchenko