phy: stm32-usbphyc: stm32: usbphyc: add protection on phy sub-node
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 14 Sep 2021 12:31:17 +0000 (14:31 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 8 Oct 2021 06:19:59 +0000 (08:19 +0200)
commit5d81616fb8f30f9ea16d2f32ab7365296f2ae886
tree2ecea65e8014cbb1670b7617efad4b8d0af2ce65
parent5b4fa85d6501e77bd6ed8e5fd1e527927f9f947d
phy: stm32-usbphyc: stm32: usbphyc: add protection on phy sub-node

Add protection on presence and order of the phy node sub node
by using the mandatory reg information.

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