]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: mobiveil: Introduce a new structure mobiveil_root_port
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Thu, 13 Feb 2020 04:06:32 +0000 (12:06 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 21 Feb 2020 11:31:59 +0000 (11:31 +0000)
commit00dc22e365553ddf4e46c82459ef1ed3aeda90c2
tree47d44922ecf49da91eda5e97ced00d64aa834baf
parent9f9285b96014e47599924b03ab0c07fa1549e04b
PCI: mobiveil: Introduce a new structure mobiveil_root_port

The Mobiveil PCIe controller can work in either Root Complex
mode or Endpoint mode.

Introduce a new structure mobiveil_root_port and abstract the
RC related members into it so that the code can be used by both
modes.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Andrew Murray <amurray@thegoodpenguin.co.uk>
drivers/pci/controller/pcie-mobiveil.c