diff options
| author | Serge Semin <[email protected]> | 2022-06-24 14:39:41 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2022-08-01 20:07:41 +0000 |
| commit | 4859db9bca5daafc4ec9ef4e5aab9e054b483e0c (patch) | |
| tree | 2d6835e94f5352b854bf940b7b194a8d9ad14168 /drivers/pci/controller/dwc/pci-layerscape.c | |
| parent | PCI: dwc: Add dw_pcie_ops.host_deinit() callback (diff) | |
| download | kernel-4859db9bca5daafc4ec9ef4e5aab9e054b483e0c.tar.gz kernel-4859db9bca5daafc4ec9ef4e5aab9e054b483e0c.zip | |
PCI: dwc: Drop enum dw_pcie_as_type in favor of PCIE_ATU_TYPE_MEM/IO
Previously dw_pcie_ep_set_bar() converted the BAR PCI_BASE_ADDRESS_SPACE
bit to the internal dw_pcie_as_type enum (DW_PCIE_AS_MEM, DW_PCIE_AS_IO)
and passed it down to dw_pcie_prog_inbound_atu(), which converted the enum
to the PCIE_ATU_TYPE_MEM/PCIE_ATU_TYPE_IO values needed to program the ATU
registers.
Simplify the code by dropping the dw_pcie_as_type enum and passing
PCIE_ATU_TYPE_MEM or PCIE_ATU_TYPE_IO directly.
Reorder inbound ATU function arguments to match the outbound functions,
with address-related parameters at the end.
[bhelgaas: commit log]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Serge Semin <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-layerscape.c')
0 files changed, 0 insertions, 0 deletions
