PCI: dwc: Refactor core initialization code for EP mode
authorVidya Sagar <vidyas@nvidia.com>
Mon, 17 Feb 2020 12:10:33 +0000 (17:40 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 25 Feb 2020 12:01:37 +0000 (12:01 +0000)
commite966f7390da935e2b5aa0b2248d2d1265f937369
tree1baa6bf591d132177b461b1b4357e6eb07e053b8
parent3d5f7d9f6a38ddcc105ebfb23b640630bbabba65
PCI: dwc: Refactor core initialization code for EP mode

Split core initialization code for EP mode into two, one that doesn't
touch core registers and the other that touches core registers. The latter
would be called/skipped based on the EPC feature 'core_init_notifier'.

In platforms where this is skipped, it would be called indirectly
through hooks from the endpoint function driver.

Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/pci/controller/dwc/pcie-designware-ep.c
drivers/pci/controller/dwc/pcie-designware.h