Re: [PATCH v4 1/2] usb: dwc3: core: add support for RTK SoC custom's global register start address

From: Thinh Nguyen
Date: Tue May 02 2023 - 18:40:26 EST


Minor correction.

On Tue, May 02, 2023, Thinh Nguyen wrote:
>
> Did you try this?
>
> dwc_res.start = DWC3_RTK_ABC_GLOBAL_OFFSET;

Ignore the line above due to copy-paste error.

>
> if (dev->of_node) {
> struct device_node *parent = of_get_parent(dev->of_node);
>
> if (of_device_is_compatible(parent, "your-compatible"))
> dwc_res.start = DWC3_RTK_ABC_GLOBAL_OFFSET;
>
> of_node_put(parent);
> }
>