Merge "st-hal: fix pause and detection events concurrency issue"