phy: qcom-qmp: Use correct values for ipq8074 PCIe Gen2 PHY init
authorSivaprakash Murugesan <sivaprak@codeaurora.org>
Wed, 29 Jul 2020 15:30:03 +0000 (21:00 +0530)
committerVinod Koul <vkoul@kernel.org>
Sun, 23 Aug 2020 15:50:14 +0000 (21:20 +0530)
commitafd55e6d1bd35b4b36847869011447a83a81c8e0
treea9a56a6807918f1cece4e9af23ef9cbebbf71d28
parent04db2304a9495b98b8976c9a8cc5f9845be35ba8
phy: qcom-qmp: Use correct values for ipq8074 PCIe Gen2 PHY init

There were some problem in ipq8074 Gen2 PCIe phy init sequence.

1. Few register values were wrongly updated in the phy init sequence.
2. The register QSERDES_RX_SIGDET_CNTRL is a RX tuning parameter
   register which is added in serdes table causing the wrong register
   was getting updated.
3. Clocks and resets were not added in the phy init.

Fix these to make Gen2 PCIe port on ipq8074 devices to work.

Fixes: eef243d04b2b6 ("phy: qcom-qmp: Add support for IPQ8074")
Cc: stable@vger.kernel.org
Co-developed-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org>
Link: https://lore.kernel.org/r/1596036607-11877-4-git-send-email-sivaprak@codeaurora.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp.c
drivers/phy/qualcomm/phy-qcom-qmp.h