linux_dsm_epyc7002/drivers/phy/qualcomm
Bjorn Andersson 885bd76596 phy: qcom-qmp: Correct READY_STATUS poll break condition
After issuing a PHY_START request to the QMP, the hardware documentation
states that the software should wait for the PCS_READY_STATUS to become
1.

With the introduction of commit c9b589791f ("phy: qcom: Utilize UFS
reset controller") an additional 1ms delay was introduced between the
start request and the check of the status bit. This greatly increases
the chances for the hardware to actually becoming ready before the
status bit is read.

The result can be seen in that UFS PHY enabling is now reported as a
failure in 10% of the boots on SDM845, which is a clear regression from
the previous rare/occasional failure.

This patch fixes the "break condition" of the poll to check for the
correct state of the status bit.

Unfortunately PCIe on 8996 and 8998 does not specify the mask_pcs_ready
register, which means that the code checks a bit that's always 0. So the
patch also fixes these, in order to not regress these targets.

Fixes: 73d7ec899b ("phy: qcom-qmp: Add msm8998 PCIe QMP PHY support")
Fixes: e78f3d15e1 ("phy: qcom-qmp: new qmp phy driver for qcom-chipsets")
Cc: stable@vger.kernel.org
Cc: Evan Green <evgreen@chromium.org>
Cc: Marc Gonzalez <marc.w.gonzalez@free.fr>
Cc: Vivek Gautam <vivek.gautam@codeaurora.org>
Reviewed-by: Evan Green <evgreen@chromium.org>
Reviewed-by: Niklas Cassel <niklas.cassel@linaro.org>
Reviewed-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
Tested-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
2019-06-21 10:51:58 +05:30
..
Kconfig phy: qcom: Add Qualcomm PCIe2 PHY driver 2019-05-31 19:41:13 +05:30
Makefile phy: qcom: Add Qualcomm PCIe2 PHY driver 2019-05-31 19:41:13 +05:30
phy-ath79-usb.c phy: ath79-usb: Fix the main reset name to match the DT binding 2019-01-16 18:00:57 +05:30
phy-qcom-apq8064-sata.c
phy-qcom-ipq806x-sata.c
phy-qcom-pcie2.c phy: qcom: Add Qualcomm PCIe2 PHY driver 2019-05-31 19:41:13 +05:30
phy-qcom-qmp.c phy: qcom-qmp: Correct READY_STATUS poll break condition 2019-06-21 10:51:58 +05:30
phy-qcom-qmp.h phy: qcom-qmp: Add msm8998 PCIe QMP PHY support 2019-04-17 14:13:20 +05:30
phy-qcom-qusb2.c phy: qcom-qusb2: get optional clock by devm_clk_get_optional() 2019-04-17 14:13:14 +05:30
phy-qcom-ufs-i.h phy: ufs-qcom: Refactor all init steps into phy_poweron 2019-04-17 14:12:57 +05:30
phy-qcom-ufs-qmp-14nm.c phy: ufs-qcom: Refactor all init steps into phy_poweron 2019-04-17 14:12:57 +05:30
phy-qcom-ufs-qmp-14nm.h
phy-qcom-ufs-qmp-20nm.c phy: ufs-qcom: Refactor all init steps into phy_poweron 2019-04-17 14:12:57 +05:30
phy-qcom-ufs-qmp-20nm.h
phy-qcom-ufs.c USB/PHY patches for 5.2-rc1 2019-05-08 10:03:52 -07:00
phy-qcom-usb-hs.c phy: core: rework phy_set_mode to accept phy mode and submode 2018-12-12 10:01:33 +05:30
phy-qcom-usb-hsic.c