PCI: rockchip-dwc: Reset core at driver probe
authorPeter Geis <pgwipeout@gmail.com>
Fri, 29 Apr 2022 12:38:28 +0000 (08:38 -0400)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 11 May 2022 15:01:26 +0000 (16:01 +0100)
commit431e7d2eece5b906578926d15ee22a70504c364d
treedb339b5cf5d3e55c24033dc1695a21338eab65b4
parent931262e646caae906d818c82390ebc1716263ff0
PCI: rockchip-dwc: Reset core at driver probe

The PCIe controller is in an unknown state at driver probe. This can
lead to undesireable effects when the driver attempts to configure the
controller.

Prevent issues in the future by resetting the core during probe.

Link: https://lore.kernel.org/r/20220429123832.2376381-3-pgwipeout@gmail.com
Tested-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
Signed-off-by: Peter Geis <pgwipeout@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/dwc/pcie-dw-rockchip.c