projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7b7c72
)
usb: dwc3-generic: Add clock initialization in child DT node
author
Kunihiko Hayashi
<hayashi.kunihiko@socionext.com>
Mon, 20 Feb 2023 05:50:27 +0000
(14:50 +0900)
committer
Marek Vasut
<marex@denx.de>
Wed, 22 Feb 2023 18:40:11 +0000
(19:40 +0100)
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 <hayashi.kunihiko@socionext.com>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/dwc3/dwc3-generic.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc3/dwc3-generic.c
b/drivers/usb/dwc3/dwc3-generic.c
index
e32003d
..
8fa56e1
100644
(file)
--- 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)