PCI: qcom: Make sure PCIe is reset before init for rev 2.1.0
authorAnsuel Smith <ansuelsmth@gmail.com>
Tue, 1 Sep 2020 12:49:54 +0000 (14:49 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 7 Sep 2020 10:58:20 +0000 (11:58 +0100)
commitd3d4d028afb785e52c55024d779089654f8302e7
tree04a4de29c651650b6f7b6a74918cbdfa36d952cd
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
PCI: qcom: Make sure PCIe is reset before init for rev 2.1.0

Qsdk U-Boot can incorrectly leave the PCIe interface in an undefined
state if bootm command is used instead of bootipq. This is caused by the
not deinit of PCIe when bootm is called. Reset the PCIe before init
anyway to fix this U-Boot bug.

Link: https://lore.kernel.org/r/20200901124955.137-1-ansuelsmth@gmail.com
Fixes: 82a823833f4e ("PCI: qcom: Add Qualcomm PCIe controller driver")
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: stable@vger.kernel.org # v4.19+
drivers/pci/controller/dwc/pcie-qcom.c