diff options
| author | Serge Semin <[email protected]> | 2022-06-24 14:39:42 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2022-08-01 20:07:55 +0000 |
| commit | 38fe272389f44c223c689d74d9e2365257ed85e1 (patch) | |
| tree | be478a72210406b8ba273981110ba14476270378 /drivers/pci/controller/dwc/pci-layerscape.c | |
| parent | PCI: dwc: Drop enum dw_pcie_as_type in favor of PCIE_ATU_TYPE_MEM/IO (diff) | |
| download | kernel-38fe272389f44c223c689d74d9e2365257ed85e1.tar.gz kernel-38fe272389f44c223c689d74d9e2365257ed85e1.zip | |
PCI: dwc: Drop enum dw_pcie_region_type in favor of PCIE_ATU_REGION_DIR_IB/OB
Previously callers of dw_pcie_disable_atu() supplied enum
dw_pcie_region_type (DW_PCIE_REGION_INBOUND, DW_PCIE_REGION_OUTBOUND),
which dw_pcie_disable_atu() converted to the PCIE_ATU_REGION_DIR_IB or
PCIE_ATU_REGION_DIR_OB values needed to program the ATU registers.
Simplify the code by dropping the dw_pcie_region_type enum and passing
PCIE_ATU_REGION_DIR_IB or PCIE_ATU_REGION_DIR_OB directly.
Reorder dw_pcie_disable_atu() arguments to (dir, index) since "index"
indicates an ATU window in the regions of the corresponding direction.
[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
