Skip to content

Commit 2cfef19

Browse files
Ansuelbjorn-helgaas
authored andcommitted
PCI: qcom: Use PHY_REFCLK_USE_PAD only for ipq8064
The use of PHY_REFCLK_USE_PAD introduced a regression for apq8064 devices. It was tested that while apq doesn't require the padding, ipq SoC must use it or the kernel hangs on boot. Link: https://lore.kernel.org/r/20201019165555.8269-1-ansuelsmth@gmail.com Fixes: de3c4bf ("PCI: qcom: Add support for tx term offset for rev 2.1.0") Reported-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Stanimir Varbanov <svarbanov@mm-sol.com> Cc: stable@vger.kernel.org # v4.19+
1 parent 7081556 commit 2cfef19

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎drivers/pci/controller/dwc/pcie-qcom.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,9 @@ static int qcom_pcie_init_2_1_0(struct qcom_pcie *pcie)
400400

401401
/* enable external reference clock */
402402
val = readl(pcie->parf + PCIE20_PARF_PHY_REFCLK);
403-
val &= ~PHY_REFCLK_USE_PAD;
403+
/* USE_PAD is required only for ipq806x */
404+
if (!of_device_is_compatible(node, "qcom,pcie-apq8064"))
405+
val &= ~PHY_REFCLK_USE_PAD;
404406
val |= PHY_REFCLK_SSP_EN;
405407
writel(val, pcie->parf + PCIE20_PARF_PHY_REFCLK);
406408

0 commit comments

Comments
 (0)