[PATCH] dwc3: Get the ref clock from the child node(dwc3)

Marek Vasut marex at denx.de
Tue May 9 16:46:52 CEST 2023


On 5/9/23 06:11, Venkatesh Yadav Abbarapu wrote:
> Currently the parent node(dwc3) ref_clk is updated to the
> dwc3->ref_clk, but we need to update the child node(dwc3)
> "ref" clock to the dwc3->ref_clk.
> For versal SOC, the parent node(usb) ref_clk is updated to dwc3->ref_clk
> which is USB3_DUAL_REF, whereas it should contain the child node(dwc3)
> "ref" clk i.e., USB0_BUS_REF. With this once we trigger "usb start"
> the device is crashing.
> For ZynqMP SOC, crash is not observed because the parent node(usb)
> ref_clk and the child node(dwc3) "ref" clk is pointing to same
> USB3_DUAL_REF clock.
> Fix this by directly updating the child node(dwc3) "ref" clk to
> dwc3->ref_clk from the dwc3_of_parse() function.
> 
> Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu at amd.com>
> ---
> TBD: Need to port the clocks patch from linux kernel

I will wait for a proper backport of all the missing patches, not just a 
subset.

Also, this is clearly a work-in-progress patch, please mark it as 
"[RFC]" next time.


More information about the U-Boot mailing list