coresight-cti: Fix cpu-cti probe fail

A function whose return value is negative indicates
an error, not a non-zero value. A return value of
1 or 0 means the function executed successfully.
In many cases, the return value is negative, such
as dev->power.disable_depth > 0, dev->power.runtime_error
is set

Add verification to the coresight_cti_ctx_save and
coresight_cti_ctx_restore to ensure that the device
is in active status while reading and writing.

Change-Id: I37fd7618371e2f9ce41850c2004ccd95bf473e2c
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
1 file changed