Skip to content

Commit 17f243a

Browse files
pierregondoissudeep-holla
authored andcommitted
firmware: arm_scmi: Fix wrong fastchannel initialization
Fastchannels are initialized with an incorrect index(POWERCAP_PAI_GET) in: commit 2441caa ("firmware: arm_scmi: Populate fast channel rate_limit") Fix this and provide a correct index(POWERCAP_FC_PAI) Fixes: 2441caa ("firmware: arm_scmi: Populate fast channel rate_limit") Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/r/202403100744.7Op3PI8L-lkp@intel.com/ Signed-off-by: Pierre Gondois <pierre.gondois@arm.com> Link: https://lore.kernel.org/r/20240311090413.1710725-1-pierre.gondois@arm.com Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
1 parent 4cece76 commit 17f243a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/arm_scmi/powercap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ static void scmi_powercap_domain_init_fc(const struct scmi_protocol_handle *ph,
736736
ph->hops->fastchannel_init(ph, POWERCAP_DESCRIBE_FASTCHANNEL,
737737
POWERCAP_PAI_GET, 4, domain,
738738
&fc[POWERCAP_FC_PAI].get_addr, NULL,
739-
&fc[POWERCAP_PAI_GET].rate_limit);
739+
&fc[POWERCAP_FC_PAI].rate_limit);
740740

741741
*p_fc = fc;
742742
}

0 commit comments

Comments
 (0)