diff options
| author | Murali Karicheri <[email protected]> | 2015-03-03 12:52:12 -0500 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2015-03-03 14:42:57 -0600 |
| commit | c49b8fc26e115a37eca6f7bcef1847eb80f2a4fd (patch) | |
| tree | 95916406a9b7ac4bc063310e57df30bb6acbfdde /include/linux | |
| parent | 6675a601d72be408025e675599702e30a99188aa (diff) | |
of/pci: Add of_pci_dma_configure() to update DMA configuration
Add of_pci_dma_configure() to allow updating the DMA configuration of the
PCI device using the configuration from DT of the parent of the root bridge
device. Use the newly added APIs pci_get/put_host_bridge_device() for
implementing this.
[bhelgaas: fold in fix for host bridges with no parent OF device]
Tested-by: Suravee Suthikulpanit <[email protected]> (AMD Seattle)
Signed-off-by: Murali Karicheri <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Acked-by: Rob Herring <[email protected]>
Acked-by: Will Deacon <[email protected]>
CC: Joerg Roedel <[email protected]>
CC: Grant Likely <[email protected]>
CC: Russell King <[email protected]>
CC: Arnd Bergmann <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/of_pci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/of_pci.h b/include/linux/of_pci.h index ce0e5abeb454..29fd3fe1c035 100644 --- a/include/linux/of_pci.h +++ b/include/linux/of_pci.h @@ -16,6 +16,7 @@ int of_pci_get_devfn(struct device_node *np); int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin); int of_pci_parse_bus_range(struct device_node *node, struct resource *res); int of_get_pci_domain_nr(struct device_node *node); +void of_pci_dma_configure(struct pci_dev *pci_dev); #else static inline int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq) { @@ -50,6 +51,8 @@ of_get_pci_domain_nr(struct device_node *node) { return -1; } + +static inline void of_pci_dma_configure(struct pci_dev *pci_dev) { } #endif #if defined(CONFIG_OF_ADDRESS) |