RE: [PATCH v6] usb: dwc3: core: add support for realtek SoCs custom's global register start address

From: Stanley Chang[昌育德]
Date: Sat May 06 2023 - 00:15:07 EST


Hi Thinh,

> > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index
> > 0beaab932e7d..278cd1c33841 100644
> > --- a/drivers/usb/dwc3/core.c
> > +++ b/drivers/usb/dwc3/core.c
> > @@ -1800,6 +1800,17 @@ static int dwc3_probe(struct platform_device
> *pdev)
> > dwc_res = *res;
> > dwc_res.start += DWC3_GLOBALS_REGS_START;
> >
> > + if (dev->of_node) {
> > + struct device_node *parent =
> > + of_get_parent(dev->of_node);
> > +
> > + if (of_device_is_compatible(parent, "realtek,rtd-dwc3"))
> > + {
>
> Is your platform already released or is it still under development? Just curious
> since the compatible string isn't fixed. Is it going to be changed in the future?

Yes, our platform is released.
In our driver (the parent of the dwc3 driver), we used the compatible name "Realtek,dwc3".
To support this patch, I will add an alternative name "Realtek,rtd-dwc3" to our driver.

Thanks,
Stanley