[PATCH 4.14 138/173] coresight: Handle errors in finding input/output ports