]> 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)
commitbe6d326f19040475f9df71092f5a93a7e321f857
tree1baa6bf591d132177b461b1b4357e6eb07e053b8
parent25d9de00601310ca9a30e0da213570a724575df0
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