Message ID | 20190312014920.25368-3-npiggin@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | sreset support for P8 systems | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch master (deb577949a3505064f471e7b7c692e37c38ec8a4) |
snowpatch_ozlabs/build-multiarch | success | Test build-multiarch on branch master |
diff --git a/libpdbg/p8chip.c b/libpdbg/p8chip.c index 914c335..61b1e25 100644 --- a/libpdbg/p8chip.c +++ b/libpdbg/p8chip.c @@ -291,7 +291,7 @@ static int p8_thread_stop(struct thread *thread) CHECK_ERR(pib_write(&thread->target, DIRECT_CONTROLS_REG, DIRECT_CONTROL_SP_STOP)); /* Wait for thread to quiese */ - CHECK_ERR(pib_read(&chip->target, RAS_STATUS_REG, &val)); + CHECK_ERR(pib_read(&thread->target, RAS_STATUS_REG, &val)); if (i++ > RAS_STATUS_TIMEOUT) { PR_ERROR("Unable to quiesce thread %d (0x%016" PRIx64 ").\n", thread->id, val);