mosys: Fix segfault on eve

The PD chip is not present on all devices, so allow probing to
fail gracefully so it does not segfault later.

TEST=manual test on eve: ensure 'mosys pd info' does not crash
but instead returns 'Command not supported on this platform' and
ensure that 'mosys pd chip 0|1' still returns TCPC mux information.

Change-Id: I7ee02ede1909ea9d3ee4635113320e36e6d49e6b
Signed-off-by: Duncan Laurie <>
Reviewed-by: Furquan Shaikh <>
1 file changed