From: Kunihiko Hayashi Date: Mon, 20 Feb 2023 05:50:27 +0000 (+0900) Subject: usb: dwc3-generic: Add clock initialization in child DT node X-Git-Tag: v2023.07-rc1~3^2~48^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c71c684ce697dcb79efb7f027d820a6ab82228b;p=pandora-u-boot.git usb: dwc3-generic: Add clock initialization in child DT node Same as the reset cotnrol, should add a clock initialization in child DT node, if the glue node doesn't have any clocks. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index e32003d68e0..8fa56e1ac17 100644 --- a/drivers/usb/dwc3/dwc3-generic.c +++ b/drivers/usb/dwc3/dwc3-generic.c @@ -572,6 +572,12 @@ static int dwc3_glue_probe(struct udevice *dev) if (ret) return ret; + if (glue->clks.count == 0) { + ret = dwc3_glue_clk_init(child, glue); + if (ret) + return ret; + } + if (glue->resets.count == 0) { ret = dwc3_glue_reset_init(child, glue); if (ret)