aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSibi Sankar <quic_sibis@quicinc.com>2023-11-29 12:27:48 +0530
committerSudeep Holla <sudeep.holla@arm.com>2023-11-30 20:45:35 +0000
commitc3f17d5f89fc72d7b170beaf393a8687ae938b19 (patch)
tree329917d4466f132d3c3649b2dff2be24e9ed6ad9
parentfirmware: arm_scmi: Fix NULL pointer dereference during fastchannel init (diff)
downloadwireguard-linux-c3f17d5f89fc72d7b170beaf393a8687ae938b19.tar.xz
wireguard-linux-c3f17d5f89fc72d7b170beaf393a8687ae938b19.zip
firmware: arm_scmi: Increase the maximum opp count in the perf protocol
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>
-rw-r--r--drivers/firmware/arm_scmi/perf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/arm_scmi/perf.c b/drivers/firmware/arm_scmi/perf.c
index a648521e04a3..81dd5c5e5533 100644
--- a/drivers/firmware/arm_scmi/perf.c
+++ b/drivers/firmware/arm_scmi/perf.c
@@ -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,