Skip to content
Commit c4748c67 authored by Nicola Mazzucato's avatar Nicola Mazzucato Committed by Girish Pathak
Browse files

scmi_clock: Fix clock_id getter



The get_clock_id() helper is there to provide the identifier for the
clock device for each SCMI message. All the messages have an associated
payload and its first field is clock_id.
The only exception to this is CLOCK_SET_RATE message.
The current implementation fo the get_clock_id does not take this
exception in consideration.

Fix get_clock_id() to take into account that not all the payloads have
clock_id as first field.

Change-Id: Ib96a196b1e9b82d7d9fa88e8462530fd844e0af0
Signed-off-by: Nicola Mazzucato's avatarNicola Mazzucato <nicola.mazzucato@arm.com>
Reported-by: default avatarPierre Gondois <Pierre.Gondois@arm.com>
parent 770b2b14
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