mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-11-19 02:21:38 +00:00
lib: utils/irqchip/imsic: Fix the MSI capability assignment
The struct sbi_irqchip_device is copied to the struct imsic_data
and the MSI capability is set in sbi_irqchip_device. Since the
struct assignment is not a pointer, the MSI capability setting
does not take effect.
Set the MSI capability directly in the struct imsic_data to
ensure it takes effect.
Fixes: 193b1d9e7e ("lib: utils/irqchip/imsic:migrate to irqchip framework")
Signed-off-by: Prajwal N <prajwal.n@oss.qualcomm.com>
Reviewed-by: Rahul Pathak <rahul.pathak@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20261001060820.1267933-1-prajwal.n@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
1 parent
0ce50ae8fa
commit
97bf679708
1 file changed
+1
-1
@@ -598,7 +598,7 @@ int imsic_cold_irqchip_init(struct imsic_data *imsic)
|
||||
|
||||
imsic->irqchip = imsic_device;
|
||||
imsic->irqchip.id = imsic->unique_id;
|
||||
imsic_device.caps = SBI_IRQCHIP_CAPS_MSI;
|
||||
imsic->irqchip.caps = SBI_IRQCHIP_CAPS_MSI;
|
||||
imsic->irqchip.num_hwirq = imsic->num_ids + 1;
|
||||
|
||||
sbi_hartmask_set_all(&imsic->irqchip.target_harts);
|
||||
|
||||
Reference in new issue
Block a user