]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(n1sdp): remove platform specific pwr_domain_suspend wrapper
authorsahil <sahil@arm.com>
Fri, 19 May 2023 05:36:13 +0000 (11:06 +0530)
committersahil <sahil@arm.com>
Fri, 19 May 2023 11:24:53 +0000 (16:54 +0530)
Turning redistributor off during suspend disables any wakeup interrupts
resulting in cpu getting stuck. This patch removes the platform specific
psci pwr_domain_suspend handler.

Signed-off-by: sahil <sahil@arm.com>
Change-Id: Ic2ad5a561be29eee9229a5cc11aa3c9320a51cb7

plat/arm/board/n1sdp/n1sdp_bl31_setup.c
plat/arm/board/n1sdp/n1sdp_pm.c
plat/arm/board/n1sdp/n1sdp_private.h

index db7215f438e8d472b4c76cb15ce078d2b7552722..2b9ed25e1c4d8b56080babcd52f4da5033d289cd 100644 (file)
@@ -71,7 +71,6 @@ scmi_channel_plat_info_t *plat_css_get_scmi_info(unsigned int channel_id)
 const plat_psci_ops_t *plat_arm_psci_override_pm_ops(plat_psci_ops_t *ops)
 {
        ops->pwr_domain_off = n1sdp_pwr_domain_off;
-       ops->pwr_domain_suspend = n1sdp_pwr_domain_suspend;
        return css_scmi_override_pm_ops(ops);
 }
 
index e43832a23af4d34f8b5075d44aac4c7f1683c867..8d453546875e652ecc9689d10770fe273ae88c2c 100644 (file)
 #include "n1sdp_private.h"
 
 /*******************************************************************************
- * N1SDP specific functions called when turning off or suspending a power
- * domain. Both additionally disable the GIC redistributor interface as cores
- * are disabled to let cluster-PPU state transition to completion when a
- * cluster is powered down.
+ * N1SDP specific function called when turning off a power domain. Additionally
+ * disables the GIC redistributor interface as cores are disabled to
+ * let cluster-PPU state transition to completion when a cluster is powered
+ * down.
  ******************************************************************************/
 void n1sdp_pwr_domain_off(const psci_power_state_t *target_state)
 {
        css_pwr_domain_off(target_state);
        plat_arm_gic_redistif_off();
 }
-
-void n1sdp_pwr_domain_suspend(const psci_power_state_t *target_state)
-{
-       css_pwr_domain_suspend(target_state);
-       plat_arm_gic_redistif_off();
-}
index 7a5c51d97aca3e8dbadc5a43025b036ce5e3db16..4e48c0fc37a2d6a4e8278300678663ecd98f66cb 100644 (file)
@@ -10,6 +10,5 @@
 #include <lib/psci/psci.h>
 
 void n1sdp_pwr_domain_off(const psci_power_state_t *target_state);
-void n1sdp_pwr_domain_suspend(const psci_power_state_t *target_state);
 
 #endif /* N1SDP_PRIVATE_H */