diff mbox series

[3/3] platform/astbmc: Only send external IRQs to OPAL if there is a handler

Message ID 20190830043025.30605-3-oohall@gmail.com
State Superseded
Headers show
Series [1/3] hw/psi-p9: Mask OPAL-owned LSIs without handlers | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (7b12d5489fcfd73ef7ec0cb27eff7f8a5f13b238)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Oliver O'Halloran Aug. 30, 2019, 4:30 a.m. UTC
If the platform hasn't defined an external IRQ handler then we should
leave it directed at the OS. The OS can mask it if it wants to.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
---
 platforms/astbmc/common.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index 85043f3b91e7..1f8a3f82c358 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -465,8 +465,9 @@  void astbmc_early_init(void)
 	/* Hostboot forgets to populate the PSI BAR */
 	astbmc_fixup_psi_bar();
 
-	/* Send external interrupts to me */
-	psi_set_external_irq_policy(EXTERNAL_IRQ_POLICY_SKIBOOT);
+	/* Send external interrupts to me if the platform can handle them */
+	if (platform.external_irq)
+		psi_set_external_irq_policy(EXTERNAL_IRQ_POLICY_SKIBOOT);
 
 	if (ast_sio_init()) {
 		if (ast_io_init()) {