Skip to content
Commit bef6cb4d authored by Katherine Vincent's avatar Katherine Vincent Committed by tarek-arm
Browse files

module/system_power: fix to correct omitted notifications



Currently when an SCMI message to set the state is sent to the
`mod_scmi_system_power` module, if the state sent is one of
shutdown, warm reset or cold reset, a notification will not be
sent to subscribers.

For the other cases, if a state transition was successful it will
send a notification before going to exit. However, in this case
regardless of whether or not it was successful, it will go straight
to the exit section and miss sending a notification.

This has been amended to now only proceed to the exit if it is an
unsuccessful change instead, and will therefore include the call
to notify subscribers if the state change was executed as expected.

Signed-off-by: Katherine Vincent's avatarKatherine Vincent <katherine.vincent@arm.com>
Change-Id: I9c7b2602b2fd316408daec627abbf7781c5825e2
parent acff5d0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment