]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd73abbf2bae95e1ab321943c02158504276f3ff0
tree1baa6bf591d132177b461b1b4357e6eb07e053b8
parentc8c8732892c580d81b2a4a2f090c16926988aca0
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