linux-xiaomi-chiron/drivers/phy
Amelie Delaunay 5b1af71280 phy: stm32: rework PLL Lock detection
USBPHYC has a register per phy to control and monitor the debug interface
of the HS PHY through a digital debug access.
With this register, it is possible to know if PLL Lock input to phy is
high. That means the PLL is ready for HS operation.
Instead of using an hard-coded delay after PLL enable and PLL disable, use
this bit to ensure good operating of the HS PHY.
Also use an atomic counter (n_pll_cons) to count the actual number of PLL
consumers and get rid of stm32_usbphyc_has_one_phy_active.
The boolean active in the usbphyc_phy structure is kept, because we need to
know in remove if a phy_exit is required to properly disable the PLL.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/20210105090525.23164-7-amelie.delaunay@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2021-01-13 20:40:21 +05:30
..
allwinner phy: sun4i-usb: remove enable_pmu_unk1 from sun50i_h6_cfg 2020-11-19 11:49:18 +05:30
amlogic phy: amlogic: replace devm_reset_control_array_get() 2020-11-30 16:32:37 +05:30
broadcom phy: phy-brcm-usb: support PHY on the BCM4908 2021-01-13 19:45:40 +05:30
cadence phy: cadence-torrent: Fix error code in cdns_torrent_phy_probe() 2021-01-13 17:31:02 +05:30
freescale phy: freescale: convert to devm_platform_ioremap_resource 2020-11-16 12:47:46 +05:30
hisilicon phy: hisilicon; Constify hi3660_phy_ops 2020-08-31 14:36:36 +05:30
ingenic phy: ingenic: Remove useless field .version 2021-01-13 17:46:46 +05:30
intel phy-for-5.11 2020-12-09 14:26:40 +01:00
lantiq phy: lantiq: convert to devm_platform_ioremap_resource 2020-11-16 12:47:47 +05:30
marvell phy: marvell: convert to devm_platform_ioremap_resource 2020-11-16 12:47:47 +05:30
mediatek phy: mediatek: Mark mtk_mipi_tx_driver with static keyword 2021-01-13 19:44:07 +05:30
motorola phy: cpcap-usb: Use IRQF_ONESHOT 2020-10-28 21:53:48 +05:30
mscc treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
qualcomm phy-for-5.11 2020-12-09 14:26:40 +01:00
ralink phy: ralink: phy-mt7621-pci: set correct name in MODULE_DEVICE_TABLE macro 2020-12-01 17:14:41 +05:30
renesas phy: renesas: rcar-gen3-usb2: disable runtime pm in case of failure 2020-12-05 13:36:12 +05:30
rockchip phy: rockchip-emmc: output tap delay dt property 2020-12-05 13:40:48 +05:30
samsung phy: samsung: Merge Kconfig for Exynos5420 and Exynos5250 2020-12-02 12:35:07 +05:30
socionext phy: socionext: Add UniPhier AHCI PHY driver support 2020-08-31 17:07:53 +05:30
st phy: stm32: rework PLL Lock detection 2021-01-13 20:40:21 +05:30
tegra phy-for-5.11 2020-12-09 14:26:40 +01:00
ti phy: ti: convert to devm_platform_ioremap_resource(_byname) 2020-11-16 12:47:48 +05:30
xilinx phy: zynqmp: Fix unused-function compiler warning 2020-07-01 20:35:29 +05:30
Kconfig PHY: Ingenic: Add USB PHY driver using generic PHY framework. 2020-12-05 13:39:30 +05:30
Makefile PHY: Ingenic: Add USB PHY driver using generic PHY framework. 2020-12-05 13:39:30 +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: Document function args 2020-07-08 16:40:21 +05:30
phy-lgm-usb.c phy: Add USB3 PHY support for Intel LGM SoC 2020-09-11 17:12:49 +05:30
phy-lpc18xx-usb-otg.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
phy-pistachio-usb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422 2019-06-05 17:37:15 +02:00
phy-xgene.c phy: phy-xgene: convert to devm_platform_ioremap_resource 2020-11-16 12:47:47 +05:30