firmware: arm_scmi: Increase the maximum opp count in the perf protocol
authorSibi Sankar <quic_sibis@quicinc.com>
Wed, 29 Nov 2023 06:57:48 +0000 (12:27 +0530)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 30 Nov 2023 20:45:35 +0000 (20:45 +0000)
The number of opps on certain variants of the X1E80100 SoC are greater
than current maximum of 16, so increase the MAX_OPP count to 32 (next
power of 2) to accommodate that.

Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
Link: https://lore.kernel.org/r/20231129065748.19871-4-quic_sibis@quicinc.com
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/perf.c

index a648521e04a35addfb520af34d2275ce4ef533bb..81dd5c5e5533b8e2ab7bd12ccd157f90d11c8f34 100644 (file)
@@ -24,7 +24,7 @@
 #include "protocols.h"
 #include "notify.h"
 
-#define MAX_OPPS               16
+#define MAX_OPPS               32
 
 enum scmi_performance_protocol_cmd {
        PERF_DOMAIN_ATTRIBUTES = 0x3,