phy: stm32-usbphyc: add counter of PLL consumer
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 26 Apr 2022 12:37:47 +0000 (14:37 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 6 Sep 2022 11:54:50 +0000 (13:54 +0200)
commit3c2db629581fbde2140a5cc6ec4f5b1f2290bda6
tree7e091fac99a84c7c8f6b24d041cc9569df7262b7
parent0a1a755636a94da71bd79860884bc97d64fba36b
phy: stm32-usbphyc: add counter of PLL consumer

Add the counter of the PLL user n_pll_cons managed by the 2 functions
stm32_usbphyc_pll_enable / stm32_usbphyc_pll_disable.

This counter allow to remove the function stm32_usbphyc_is_init
and it is a preliminary step for ck_usbo_48m introduction.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/phy/phy-stm32-usbphyc.c