rt-thread/components/drivers/pci
Old-Ding c7f21bddeb drivers: pci: Fix endpoint MSI setup
rt_pci_ep_set_msi() checked the set_msix callback before calling set_msi. That rejects endpoint controllers that implement MSI without MSI-X, and can call through a NULL set_msi pointer when only MSI-X is provided.

The same helper converts a requested MSI vector count into the log2 field passed to the controller. Stop after the first value large enough for the request so smaller requests are not widened by later loop iterations.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 14:03:38 +08:00
..
endpoint drivers: pci: Fix endpoint MSI setup 2026-07-08 14:03:38 +08:00
host [DM/PCI] Add SoC PCI Kconfig import 2025-08-25 11:12:02 +08:00
msi [DM/PCI] Fixup the MSI info shuold free 2025-08-25 11:12:02 +08:00
Kconfig [DM/Feature] Basic PCI/PCIe (Peripheral Component Interconnect Express) bus 2024-09-06 17:45:03 -04:00
SConscript [DM/PCI] Add /proc access in RT-Smart user. 2025-05-23 13:22:25 +08:00
access.c [DM/Feature] Basic PCI/PCIe (Peripheral Component Interconnect Express) bus 2024-09-06 17:45:03 -04:00
ecam.c [DM/Feature] Basic PCI/PCIe (Peripheral Component Interconnect Express) bus 2024-09-06 17:45:03 -04:00
ecam.h [DM/Feature] Basic PCI/PCIe (Peripheral Component Interconnect Express) bus 2024-09-06 17:45:03 -04:00
host-bridge.c [DM/Feature] Basic PCI/PCIe (Peripheral Component Interconnect Express) bus 2024-09-06 17:45:03 -04:00
irq.c [DM/Feature] Basic PCI/PCIe (Peripheral Component Interconnect Express) bus 2024-09-06 17:45:03 -04:00
ofw.c [DM/PCI] Fixup the bus-range probe 2025-08-25 11:12:02 +08:00
pci.c [DM/PCI] Add /proc access in RT-Smart user. 2025-05-23 13:22:25 +08:00
pci_ids.h [DM/Feature] Basic PCI/PCIe (Peripheral Component Interconnect Express) bus 2024-09-06 17:45:03 -04:00
pci_regs.h [DM/Feature] Basic PCI/PCIe (Peripheral Component Interconnect Express) bus 2024-09-06 17:45:03 -04:00
pme.c [DM/PCI] Add /proc access in RT-Smart user. 2025-05-23 13:22:25 +08:00
probe.c [dm][pci] fixup the shift of class in probe 2026-03-02 09:37:07 +08:00
procfs.c [DM/PCI] Add /proc access in RT-Smart user. 2025-05-23 13:22:25 +08:00
procfs.h [DM/PCI] Add /proc access in RT-Smart user. 2025-05-23 13:22:25 +08:00