From d0ae6a91ff7d55d8b807b354ce2d02db556f274d Mon Sep 17 00:00:00 2001 From: "David E. Garcia Porras" Date: Mon, 8 Jun 2026 18:22:54 +0530 Subject: [PATCH] lib: sbi_mpxy: Enable MPXY channel MSI availability determination Use sbi_irqchip_find_device_by_caps() to determine MSI availability for each MPXY channel based on MSI controller presence in the system instead of unconditionally disabling it. Signed-off-by: David E. Garcia Porras Link: https://lore.kernel.org/r/20260608125257.3220114-3-anup.patel@oss.qualcomm.com Signed-off-by: Anup Patel --- lib/sbi/sbi_mpxy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/sbi/sbi_mpxy.c b/lib/sbi/sbi_mpxy.c index 8daeb83d..3e0e0af6 100644 --- a/lib/sbi/sbi_mpxy.c +++ b/lib/sbi/sbi_mpxy.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -255,11 +256,10 @@ static int domain_mpxy_state_data_setup(struct sbi_domain *dom, return SBI_ENOMEM; /* - * TODO: Proper support for checking msi support from - * platform. Currently disable msi and sse and use - * polling + * TODO: Proper support for checking sse support from + * platform. Currently disable sse and use polling */ - ms->msi_avail = false; + ms->msi_avail = !!sbi_irqchip_find_device_by_caps(SBI_IRQCHIP_CAPS_MSI, NULL); ms->sse_avail = false; sbi_mpxy_shmem_disable(ms);