[PATCH 4.18 190/235] coresight: Handle errors in finding input/output ports