[PATCH v2 06/10] coresight: Add helper to check if the endpoint is input