diff options
author | Krzysztof Wilczyński <kw@linux.com> | 2020-11-30 02:07:41 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-12-10 23:56:03 +0300 |
commit | 63eab4944e4f33f69a6a72427490c4d5f8d3f072 (patch) | |
tree | 03698bcd3430b3887d0da61a3b9a86267fb3e7ea /drivers/pci/controller/vmd.c | |
parent | 31a8cdb7ef8042a63fcb2ae3856df28af15abc8f (diff) | |
download | linux-63eab4944e4f33f69a6a72427490c4d5f8d3f072.tar.xz |
PCI: iproc: Convert to use the new ECAM constants
Change interface of the function iproc_pcie_map_ep_cfg_reg() so that use
of PCI_SLOT() and PCI_FUNC() macros and most of the local ECAM-specific
constants can be dropped, and the new PCIE_ECAM_OFFSET() macro can be
used instead. Use the ALIGN_DOWN() macro to ensure that PCI Express
ECAM offset is always 32 bit aligned.
Suggested-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20201129230743.3006978-4-kw@linux.com
Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/controller/vmd.c')
0 files changed, 0 insertions, 0 deletions