diff options
author | Ahmed Gadallah <ahmed.gadallah@arm.com> | 2020-10-13 19:41:22 +0100 |
---|---|---|
committer | tarek-arm <56722698+tarek-arm@users.noreply.github.com> | 2020-11-05 19:08:26 +0000 |
commit | 769df4c6e3c6d553d2ba975d2891c206989b0792 (patch) | |
tree | a6c5151b664b68b7e3003a7e267f11c193cb16a1 /product/sgi575/scp_ramfw/config_scmi.c | |
parent | 8dd7c7077ff1d73679a95bcf6de5be90e2d4c727 (diff) |
scmi: fix errors when "BS_FIRMWARE_HAS_RESOURCE_PERMISSIONS=no"
Errors fixed when "BS_FIRMWARE_HAS_RESOURCE_PERMISSIONS=no":
1) When an agent of type PSCI sends a "Base protocol: Protocol
attributes" command, the number of all protocols supported by the SCP
is returned instead of the number of protocols available for PSCI
agents only.
2) When an agent of type PSCI sends a "Base protocol: Discover list
protocols" command, all protocols supported by the SCP are returned
instead of the protocols available for PSCI agents only.
Signed-off-by: Ahmed Gadallah <ahmed.gadallah@arm.com>
Change-Id: Ib0a4930216d8da29c79c6724bd74cb51d5184b5b
Diffstat (limited to 'product/sgi575/scp_ramfw/config_scmi.c')
-rw-r--r-- | product/sgi575/scp_ramfw/config_scmi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/product/sgi575/scp_ramfw/config_scmi.c b/product/sgi575/scp_ramfw/config_scmi.c index 005c7f50..43b345a6 100644 --- a/product/sgi575/scp_ramfw/config_scmi.c +++ b/product/sgi575/scp_ramfw/config_scmi.c @@ -71,6 +71,9 @@ static struct mod_scmi_agent agent_table[] = { const struct fwk_module_config config_scmi = { .data = &((struct mod_scmi_config){ .protocol_count_max = 9, +#ifndef BUILD_HAS_RESOURCE_PERMISSIONS +# error "Please configure the disabled protocols for PSCI agents" +#endif .agent_count = FWK_ARRAY_SIZE(agent_table) - 1, .agent_table = agent_table, .vendor_identifier = "arm", |