lib: Remove redundant sbi_platform_ipi_clear() calls
authorAnup Patel <anup.patel@wdc.com>
Fri, 19 Feb 2021 04:24:05 +0000 (09:54 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 3 Mar 2021 08:24:50 +0000 (13:54 +0530)
commit50d4fde1c5a4ceb063d7f9a402769fb5be6d59ad
tree0590cebdd9fea2041c60f665797036270e874f94
parentb9cf617a9f15168e109a9c95989093b36b4f0135
lib: Remove redundant sbi_platform_ipi_clear() calls

The sbi_platform_ipi_clear() called from wait_for_coldboot() and
sbi_hsm_hart_wait() is redundant because IPI will be automatically
cleared by sbi_platform_ipi_init() called from sbi_ipi_init().

Further, wait_for_coldboot() is common for warm startup and warm
resume path so the sbi_platform_ipi_clear() called in warm resume
path cause resuming HART to miss an IPI injected other HART to
wakeup the HART.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
lib/sbi/sbi_hsm.c
lib/sbi/sbi_init.c
lib/sbi/sbi_ipi.c