On 2/1/23 02:13, Kunihiko Hayashi wrote:
The most of devicetree has the following USB node structure.
The controller node is placed as a child node of the glue node.
Current dwc3-generic driver works on this premise.

     glue {
         /* glue node */
        usb {
             /* controller node */
        };
     };

However, UniPhier original devicetree has the following USB node structure.
The controller node is separately placed from the glue node.

     usb {
         /* controller node */
     };
     glue {
         /* glue node */
     };

In dwc_glue_bind(), this patch provides .glue_get_ctrl_dev() callback to
get such a controller node and binds the driver related to the node.

If this callback isn't defined, dwc_glue_bind() looks for the controller
nodes from the child nodes, as before.

Suggested-by: Marek Vasut <ma...@denx.de>
Signed-off-by: Kunihiko Hayashi <hayashi.kunih...@socionext.com>

Reviewed-by: Marek Vasut <ma...@denx.de>

Reply via email to