qemu_epc_get_msi: flag should use msi enable flag

Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
This commit is contained in:
lipengfei28 2024-10-09 12:02:18 +08:00 committed by Xiang Xiao
parent 2cfd0783bc
commit 15126945cd
1 changed files with 1 additions and 1 deletions

View File

@ -660,7 +660,7 @@ static int qemu_epc_get_msi(FAR struct pci_epc_ctrl_s *epc, uint8_t funcno)
base = pci_qep_func_base(qep, funcno); base = pci_qep_func_base(qep, funcno);
flags = qemu_epc_cfg_read16(qep, base + QEMU_EPC_BAR_CFG_MSI + flags = qemu_epc_cfg_read16(qep, base + QEMU_EPC_BAR_CFG_MSI +
PCI_MSI_FLAGS); PCI_MSI_FLAGS);
if (!(flags & PCI_MSIX_FLAGS_ENABLE)) if (!(flags & PCI_MSI_FLAGS_ENABLE))
{ {
pcierr("msi is not enabled\n"); pcierr("msi is not enabled\n");
return -EINVAL; return -EINVAL;