phy: stm32: add phy tuning support
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Fri, 15 Oct 2021 16:14:27 +0000 (18:14 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 26 Oct 2021 11:06:22 +0000 (16:36 +0530)
commit2f5e9f815a2f9d581b0998710949400fc6e7a51f
tree572d32820bbed1d0721ab71c99fa4bc827f04645
parent6e59b5aea2f8b55e1c629ac35c147dfc14c418da
phy: stm32: add phy tuning support

It can be necessary to adjust the phys settings to compensate parasitics.
This patch adds support of new optional properties to configure the tune
interface of the phys of stm32-usbphyc.
Properties are optional, that's why each property is skipped if not
found (-EINVAL).
Phy tuning is restored on resume because if deep low power state is
achieved, phy tuning configuration is reset.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/20211015161427.220784-4-amelie.delaunay@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/st/phy-stm32-usbphyc.c