From: David Virag <virag.david003@gmail.com>
To: Paul Menzel <pmenzel@molgen.mpg.de>,
Vinod Koul <vkoul@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Peter Griffin <peter.griffin@linaro.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org,
Umer Uddin <umer.uddin@mentallysanemainliners.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Manivannan Sadhasivam <mani@kernel.org>,
linux-phy@lists.infradead.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v3 3/5] phy: exynos5-usbdrd: support Exynos7885 USB PHY
Date: Fri, 04 Dec 2026 18:53:54 +0100 [thread overview]
Message-ID: <0543ee97f468f9f427b77cd33cddfbf7a9425fdc.camel@gmail.com> (raw)
In-Reply-To: <16634e7d-3bf0-41de-b16e-dea539803a3d@molgen.mpg.de>
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@molgen.mpg.de>
>
>
> Kind regards,
>
> Paul
>
Thanks
Best regards,
David
next prev parent reply other threads:[~2026-12-04 17:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 14:54 [PATCH v3 0/5] Add USB support to Exynos7885 David Virag
2026-11-25 14:54 ` [PATCH v3 2/5] dt-bindings: usb: samsung,exynos-dwc3: Add Exynos7885 support David Virag
2026-12-04 14:05 ` Rob Herring (Arm)
2026-11-25 14:54 ` [PATCH v3 3/5] phy: exynos5-usbdrd: support Exynos7885 USB PHY David Virag
2026-12-03 11:58 ` Paul Menzel
2026-12-04 17:53 ` David Virag [this message]
2026-11-25 14:54 ` [PATCH v3 4/5] arm64: dts: exynos: Enable USB in Exynos7885 David Virag
2026-11-25 14:54 ` [PATCH v3 5/5] arm64: dts: exynos: exynos7885-jackpotlte: Enable USB support David Virag
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0543ee97f468f9f427b77cd33cddfbf7a9425fdc.camel@gmail.com \
--to=virag.david003@gmail.com \
--cc=alim.akhtar@samsung.com \
--cc=gregkh@linuxfoundation.org \
--cc=krzk@kernel.org \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=mani@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=peter.griffin@linaro.org \
--cc=pmenzel@molgen.mpg.de \
--cc=umer.uddin@mentallysanemainliners.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox