]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: mvebu: Drop unused PCI express capability code
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 18 Oct 2018 15:37:17 +0000 (17:37 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 18 Oct 2018 16:50:30 +0000 (17:50 +0100)
commit4a2d44010ee5552c66a7fd90a5edf6f8094dddff
tree0a120d24e512e19da5cf8f288233daa30e34be57
parent916a4aee864fe0b206f0bb5f0e7c321079102fb6
PCI: mvebu: Drop unused PCI express capability code

Commit 62f34e7a1b550 ("PCI: mvebu: Add PCI Express root complex
capability block") added support for emulating the PCI Express
capability block. As part of this, the pcie_sltcap, pcie_devctl and
pcie_rtctl fields were added to the mvebu_sw_pci_bridge structure, and
used when reading the corresponding PCI Express capability block
registers.

However, those structure members are never set to any value other than
zero. This makes them unneeded because:

 - pcie_devctl is used to OR *value, so with pcie_devctl always zero,
   it has no effect.

 - for pcie_sltcap and pcie_rtstl, the mvebu_sw_pci_bridge_read()
   function always returns 0 for registers that are not explicitly
   handled.

In preparation for reworking the PCI bridge emulation logic in
pci-mvebu, let's simplify the code by dropping those structure
members.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pci-mvebu.c