linux/drivers/phy/samsung
Marek Szyprowski f2812227bb phy: samsung: phy-exynos-pcie: sanitize init/power_on callbacks
The exynos-pcie driver called phy_power_on() before phy_init() for some
historical reasons. However the generic PHY framework assumes that the
proper sequence is to call phy_init() first, then phy_power_on(). The
operations done by both functions should be considered as one action and as
such they are called by the exynos-pcie driver (without doing anything
between them). The initialization is just a sequence of register writes,
which cannot be altered without breaking the hardware operation.

To match the generic PHY framework requirement, simply move all register
writes to the phy_init()/phy_exit() and drop power_on()/power_off()
callbacks. This way the driver will also work with the old (incorrect)
PHY initialization call sequence.

Link: https://lore.kernel.org/r/20220628220409.26545-1-m.szyprowski@samsung.com
Reported-by: Bjorn Helgaas <helgaas@kernel.org>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Chanho Park <chanho61.park@samsung.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-By: Vinod Koul <vkoul@kernel.org>
2022-08-01 15:25:12 -05:00
..
Kconfig phy: samsung: unify naming and describe driver in KConfig 2021-10-01 11:46:20 +05:30
Makefile phy: samsung-ufs: support exynosauto ufs phy driver 2021-07-20 16:43:10 +05:30
phy-exynos4x12-usb2.c
phy-exynos5-usbdrd.c phy: samsung: convert to devm_platform_ioremap_resource 2020-11-16 12:47:47 +05:30
phy-exynos7-ufs.c phy: samsung-ufs: move phy-exynos7-ufs header 2021-07-20 16:43:10 +05:30
phy-exynos4210-usb2.c
phy-exynos5250-sata.c phy: samsung: exynos5250-sata: fix missing device put in probe error paths 2022-04-11 22:47:42 +05:30
phy-exynos5250-usb2.c phy: samsung: Add support for the Exynos5420 variant of the USB2 PHY 2020-11-30 16:20:59 +05:30
phy-exynos-dp-video.c
phy-exynos-mipi-video.c
phy-exynos-pcie.c phy: samsung: phy-exynos-pcie: sanitize init/power_on callbacks 2022-08-01 15:25:12 -05:00
phy-exynosautov9-ufs.c phy: samsung-ufs: support exynosauto ufs phy driver 2021-07-20 16:43:10 +05:30
phy-s5pv210-usb2.c
phy-samsung-ufs.c phy: samsung-ufs: support exynosauto ufs phy driver 2021-07-20 16:43:10 +05:30
phy-samsung-ufs.h phy: samsung-ufs: support exynosauto ufs phy driver 2021-07-20 16:43:10 +05:30
phy-samsung-usb2.c phy: samsung: Merge Kconfig for Exynos5420 and Exynos5250 2020-12-02 12:35:07 +05:30
phy-samsung-usb2.h phy: samsung: Add support for the Exynos5420 variant of the USB2 PHY 2020-11-30 16:20:59 +05:30