Re: [PATCH v3 3/5] phy: exynos5-usbdrd: support Exynos7885 USB PHY

From: David Virag

Date: Fri Dec 04 2026 - 12:54:01 EST


Dear Paul,

On Thu, 2026-12-03 at 12:58 +0100, Paul Menzel wrote:
> Dear David,
>
>
> Thank you for your patch.
>
> Am 25.11.26 um 15:54 schrieb David Virag:
> > The Exynos7885 SoC has an Exynos USB PHY that theoretically
> > supports
> > USB3 SuperSpeed, but all known devices using it only have USB2 and
> > the
> > vendor driver has USB3 function stubbed out, so we'll only support
> > USB2.
> >
> > Apart from this mysterius USB3 capability, it's the closest to
> > Exynos850
>
> mysteri*o*us

Woops, will fix.

> [...]
> > +static const struct exynos5_usbdrd_phy_drvdata
> > exynos7885_usbdrd_phy = {
> > + .phy_cfg                = phy_cfg_exynos850,
> > + .phy_ops                = &exynos850_usbdrd_phy_ops,
>
> `.n_phy_cfg` is missing. Since commit ba6618a1e7c0 ("phy:
> exynos5-usbdrd: Use dynamic phy_cfg size to prevent OOB access"), in
> Linus’ tree since v7.4-rc5, the driver creates `n_phy_cfg` PHYs, so
> with
> this entry it creates none, and `exynos5_usbdrd_phy_xlate()` warns
> and
> returns -ENODEV for index 0. The series applies to such a tree
> without a
> conflict, so the base used for the Tested-by probably predates that
> commit.
>
> On a Samsung Galaxy Tab A 10.1 (2019, Wi-Fi) (SM-T510, Exynos 7904),
> next-20261202 with this series and USB enabled like on gta3xllte,
> dwc3
> probes without a PHY (trace below). Adding
>
>          .n_phy_cfg              = ARRAY_SIZE(phy_cfg_exynos850),
>
> fixes it: the WARN is gone, and a configfs ACM gadget enumerates on
> the
> host at high speed (an interactive shell over ttyACM0 works).
>

Ah, right, that goes through the linux-phy tree (vkoul), and the usb
part goes through linux-usb (gregkh) if I understand correctly (and dts
through Krzysztof's tree).
Oh well, I'll have to figure this out. Maybe I'll have to split this
into 3 patchsets, one for the DWC3 binding, one for the PHY stuff, one
for the dts (which might have to wait a cycle).

Maintainers: Please let me know if this is the approach I should take
or something else.

Thanks for pointing this out!

>
> [...]
> With the change above feel free to add:
>
>      Tested-by: Paul Menzel <pmenzel@xxxxxxxxxxxxx>
>
>
> Kind regards,
>
> Paul
>
Thanks

Best regards,
David