Could a solution, be to call st_lsm6dsx_reset_hw_ts() in st_lsm6dsx_resume() ?yes, I think so. Could you please try to patch below? Thanks.
Hi Lorenzo, I have tried your patch, and the timestamp seems to behave like before. https://gist.github.com/sknsean/959d3421f66cb49144e7841a8a08a2be Sorry NTP have been connected for a while :) I will enable some more debug to trace what is happening. /Sean