PMUFW: PM: pm_slave: added debug prints when slave state changes
Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com> Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com> Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
This commit is contained in:
parent
85705895d7
commit
2ff64bf7a9
2 changed files with 12 additions and 1 deletions
|
@ -167,6 +167,9 @@ static u32 PmSlaveChangeState(PmSlave* const slave, const PmStateId state)
|
|||
u32 t;
|
||||
u32 status;
|
||||
const PmSlaveFsm* fsm = slave->slvFsm;
|
||||
#ifdef DEBUG_PM
|
||||
PmStateId oldState = slave->node.currState;
|
||||
#endif
|
||||
|
||||
if (0U == fsm->transCnt) {
|
||||
/* Slave's FSM has no transitions when it has only one state */
|
||||
|
@ -199,6 +202,14 @@ static u32 PmSlaveChangeState(PmSlave* const slave, const PmStateId state)
|
|||
|
||||
break;
|
||||
}
|
||||
#ifdef DEBUG_PM
|
||||
if (PM_RET_SUCCESS == status) {
|
||||
PmDbg("%s %d->%d\n", PmStrNode(slave->node.nodeId), oldState,
|
||||
slave->node.currState);
|
||||
} else {
|
||||
PmDbg("%s ERROR #%d\n", PmStrNode(slave->node.nodeId), status);
|
||||
}
|
||||
#endif
|
||||
|
||||
return status;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef ZYNQMP_XPFW_VERSION__H_
|
||||
#define ZYNQMP_XPFW_VERSION__H_
|
||||
#define ZYNQMP_XPFW_VERSION "2015.1-swbeta2-26-ga3313fd8ec5d"
|
||||
#define ZYNQMP_XPFW_VERSION "2015.1-swbeta2-27-g58a81909d7b5"
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue