usb: dwc2: platform: adopt dev_err_probe() to silent probe defer
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Tue, 7 Dec 2021 12:08:29 +0000 (13:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Dec 2021 22:48:08 +0000 (23:48 +0100)
commit856d3624489a4906b8a95de7bb8311ca6e25b3b9
tree4f8364cf0817b1263b15870efdeed06f0f27f68e
parentcdf8e2de16c01b2b44fc544a3b5de74d8092b517
usb: dwc2: platform: adopt dev_err_probe() to silent probe defer

In case of probe defer, a message is logged for resets and clocks. Use
dev_err_probe to log the message only when error code is not -517.
Simplify phy, regulators and drd probe defer handling with dev_err_probe().
Then, take benefit of devices_deferred debugfs in case of probe deferral.

Acked-by: Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/20211207120829.266837-1-amelie.delaunay@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/platform.c