phy: stm32: restore utmi switch on resume
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Fri, 15 Oct 2021 16:14:25 +0000 (18:14 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 26 Oct 2021 11:06:22 +0000 (16:36 +0530)
commit95e38c17d9971cd6639ce899a24e581800e7113a
tree5dd2424aaba89f9c8b36340a261178ff5a05f380
parent4ff6b676ba53c02a4ab82181265678f64272641c
phy: stm32: restore utmi switch on resume

UTMI switch value can be lost during suspend/resume, depending on the power
state reached.
This patch adds resume function to usbphyc, to reconfigure utmi switch
after suspend.

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