linux/drivers/pci
Damien Le Moal 57ed93fe79 PCI: rockchip-ep: Improve rockchip_pcie_ep_unmap_addr()
There is no need to loop over all regions to find the memory window used
to map an address. We can use rockchip_ob_region() to determine the
region index, together with a check that the address passed as argument
is the address used to create the mapping. Furthermore, the
ob_region_map bitmap should also be checked to ensure that we are not
attempting to unmap an address that is not mapped.

Link: https://lore.kernel.org/r/20241017015849.190271-4-dlemoal@kernel.org
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2024-11-25 13:18:35 -06:00
..
controller PCI: rockchip-ep: Improve rockchip_pcie_ep_unmap_addr() 2024-11-25 13:18:35 -06:00
endpoint PCI: endpoint: Clear secondary (not primary) EPC in pci_epc_remove_epf() 2024-11-18 17:18:19 +00:00
hotplug pci-v6.12-changes 2024-09-23 12:47:06 -07:00
msi Switch ARM/ARM64 over to the modern per device MSI domains: 2024-07-22 14:02:19 -07:00
pcie PCI/AER: Use PCI_DEVID() macro in aer_inject() 2024-09-01 17:05:45 +00:00
pwrctl pci-v6.12-changes 2024-09-23 12:47:06 -07:00
switch PCI: switchtec: Make switchtec_class constant 2024-06-10 15:03:30 -05:00
access.c PCI: Revert the cfg_access_lock lockdep mechanism 2024-06-04 12:10:05 -05:00
ats.c pci-v6.12-changes 2024-09-23 12:47:06 -07:00
bus.c pci-v6.11-changes 2024-07-19 19:03:18 -07:00
devres.c pci-v6.12-changes 2024-09-23 12:47:06 -07:00
doe.c PCI/DOE: Support discovery version 2 2024-04-09 09:33:15 -05:00
ecam.c
host-bridge.c
iomap.c PCI: Fix typos 2024-09-19 14:24:00 -05:00
iov.c
irq.c
Kconfig PCI/NPEM: Add Native PCIe Enclosure Management support 2024-09-04 17:25:12 -05:00
Makefile PCI/NPEM: Add Native PCIe Enclosure Management support 2024-09-04 17:25:12 -05:00
mmap.c PCI/sysfs: Compile pci-sysfs.c only if CONFIG_SYSFS=y 2024-03-05 16:08:43 -06:00
npem.c PCI/NPEM: Add _DSM PCIe SSD status LED management 2024-09-06 11:37:24 -05:00
of_property.c PCI: of_property: Add interrupt-controller property in PCI device nodes 2024-07-08 17:40:30 -06:00
of.c pci-v6.11-changes 2024-07-19 19:03:18 -07:00
p2pdma.c
pci-acpi.c ACPI: RISC-V: Implement PCI related functionality 2024-08-27 15:48:35 +02:00
pci-bridge-emul.c PCI: Rename CRS Completion Status to RRS 2024-09-10 19:52:30 -05:00
pci-bridge-emul.h
pci-driver.c PCI: Make pci_bus_type constant 2024-08-23 12:46:22 -05:00
pci-label.c
pci-mid.c PCI/PM: Switch to new Intel CPU model defines 2024-06-11 17:08:14 -05:00
pci-pf-stub.c PCI: Add missing MODULE_DESCRIPTION() macros 2024-07-08 08:35:35 +00:00
pci-stub.c PCI: Add missing MODULE_DESCRIPTION() macros 2024-07-08 08:35:35 +00:00
pci-sysfs.c s390/pci: Stop usurping pdev->dev.groups 2024-08-09 14:58:27 -05:00
pci.c pci-v6.12-changes 2024-09-23 12:47:06 -07:00
pci.h Merge branch 'pci/misc' 2024-09-19 14:25:34 -05:00
probe.c Merge branch 'pci/controller/qcom' 2024-09-19 14:25:32 -05:00
proc.c
quirks.c Merge branch 'pci/quirks' 2024-09-19 14:25:34 -05:00
remove.c pci-v6.12-changes 2024-09-23 12:47:06 -07:00
rom.c
search.c
setup-bus.c PCI: Relax bridge window tail sizing rules 2024-06-12 14:51:30 -05:00
setup-res.c
slot.c
syscall.c
vc.c
vgaarb.c
vpd.c
xen-pcifront.c