]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: artpec6: Deassert the core before waiting for PHY
authorNiklas Cassel <niklas.cassel@axis.com>
Tue, 19 Dec 2017 23:29:37 +0000 (00:29 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 21 Dec 2017 11:10:34 +0000 (11:10 +0000)
commit597e01b42d277193059c1e35ef1b7d558105c7ad
tree6619b4d50a3bf901229d23999bb1a84d862f5ab2
parentfaa82bc7626d9c4fc9fc9196cd4601b700ade2ae
PCI: dwc: artpec6: Deassert the core before waiting for PHY

Waiting for the PHY while the core was held in reset worked for artpec6,
but for artpec7, in order to read the required registers, the core has to
be out of reset.
Refactor the code so we always wait for the PHY after the core has been
deasserted, since this works for both artpec6 and artpec7.

Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/dwc/pcie-artpec6.c