]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: cadence: Add Power Management ops for host and EP
authorAlan Douglas <adouglas@cadence.com>
Mon, 25 Jun 2018 08:30:52 +0000 (09:30 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 12 Jul 2018 11:44:14 +0000 (12:44 +0100)
commitee12c9efe685428ebfae1bf5347b5375f54ce44e
treefa4547e150a97e7dbf36fb55124f2ef3d9d157fa
parent82dfbd27c837b5a7c2a7a13b54a4f0b16c51222f
PCI: cadence: Add Power Management ops for host and EP

These PM ops will enable/disable the optional PHYs if present.  The
AXI link-down register in the host driver is now cleared in
cdns_pci_map_bus() since the link-down bit will be set if the PHY has
been disabled. It is not cleared when enabling the PHY, since the
link will not yet be up (e.g. when an EP controller is connected
back-to-back to the host controller and its PHY is still disabled).

Link: http://lkml.kernel.org/r/1529915453-4633-5-git-send-email-adouglas@cadence.com
Signed-off-by: Alan Douglas <adouglas@cadence.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pcie-cadence-ep.c
drivers/pci/controller/pcie-cadence-host.c
drivers/pci/controller/pcie-cadence.c
drivers/pci/controller/pcie-cadence.h