Unverified Commit e44cb7c7 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra Committed by Palmer Dabbelt
Browse files

pci: Add hooks for bus/bridge-specific fixups



There is currently no way for a PCIe bridge to impose constraints on
devices added to it.  For example, the Xilinx PCIe host bridge only
supports 32-bit physical addresses (due to a limitation on the AXI
port's address width).  Thus, even devices that claim to support 64-bit
DMA addresses must be restricted to 32-bit addresses when attached to
this host controller.

This patch adds a "add_dev" hook to pci_ops that allows the PCI
infastructure to interpose when adding a device, which in the case of
the Xilinx driver will be used to restrict the address ranges used for
DMA.

Signed-off-by: default avatarPalmer Dabbelt <palmer@dabbelt.com>
parent acb18725
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment