linux/drivers/phy
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
..
allwinner phy: for 5.1-rc 2019-04-25 11:27:48 +02:00
amlogic phy: phy-meson-gxl-usb2: get optional clock by devm_clk_get_optional() 2019-04-17 14:13:16 +05:30
broadcom phy: usb: phy-brcm-usb: Fix platform_no_drv_owner.cocci warnings 2019-06-20 14:13:59 +05:30
cadence phy: Add Cadence D-PHY support 2019-02-07 11:11:06 +05:30
freescale phy: fsl-imx8mq-usb: add support for VBUS power control 2019-04-18 22:08:25 +05:30
hisilicon phy: Add usb phy support for hi3660 Soc of Hisilicon 2019-04-18 22:08:25 +05:30
lantiq phy: lantiq: Fix compile warning 2018-09-26 13:09:39 +05:30
marvell phy: fix platform_no_drv_owner.cocci warnings 2019-04-17 12:06:02 +05:30
mediatek scsi: phy: mediatek: fix typo in author's email address 2019-04-18 22:08:25 +05:30
motorola phy: mapphone-mdm6600: add gpiolib dependency 2019-04-17 12:06:02 +05:30
mscc phy: ocelot-serdes: Add support for SERDES6G muxing 2019-04-18 22:08:25 +05:30
qualcomm phy: qcom-qmp: Correct READY_STATUS poll break condition 2019-06-21 10:51:58 +05:30
ralink phy: add 'depends on HAS_IOMEM' to fix unmet dependency 2018-03-16 13:40:45 +05:30
renesas phy: renesas: rcar-gen3-usb2: enable/disable independent irqs 2019-04-17 14:13:14 +05:30
rockchip USB/PHY patches for 5.2-rc1 2019-05-08 10:03:52 -07:00
samsung phy: samsung: Use struct_size() in devm_kzalloc() 2019-06-20 14:13:57 +05:30
socionext phy: socionext: get optional clock by devm_clk_get_optional() 2019-04-17 14:13:15 +05:30
st phy: stm32: fix usbphyc static checker and checkpatch warnings 2018-05-20 21:51:25 +05:30
tegra phy: tegra: xusb: Add Tegra186 support 2019-04-17 14:12:47 +05:30
ti phy: ti: am654-serdes: Make serdes_am654_xlate() static 2019-06-21 10:51:14 +05:30
Kconfig phy: dphy: Add configuration helpers 2018-12-12 10:01:51 +05:30
Makefile phy: dphy: Add configuration helpers 2018-12-12 10:01:51 +05:30
phy-core-mipi-dphy.c phy: dphy: Change units of wakeup and init parameters 2019-02-07 11:11:05 +05:30
phy-core.c phy: core: Invoke pm_runtime_get_*/pm_runtime_put_* before invoking reset callback 2019-04-17 14:13:17 +05:30
phy-lpc18xx-usb-otg.c phy: lpc18xx-usb-otg: error handling in lpc18xx_usb_otg_phy_power_on() 2018-03-16 13:40:42 +05:30
phy-pistachio-usb.c PHY: Add driver for Pistachio USB2.0 PHY 2015-06-21 21:53:38 +02:00
phy-xgene.c phy: xgene: rename "enum phy_mode" to "enum xgene_phy_mode" 2016-07-04 17:19:21 +05:30