[PATCH v2 02/14] coresight: tmc-etr: Refactor for handling errors