From: Emanuele Ghidoli <ghidoliemanuele@gmail.com>
To: Mehmet Fide <mehmet.fide@gmail.com>,
Marek Vasut <marek.vasut+usb@mailbox.org>
Cc: Tom Rini <trini@konsulko.com>,
Francesco Dolcini <francesco@dolcini.it>,
Fabio Estevam <festevam@gmail.com>,
Simon Glass <sjg@chromium.org>,
u-boot@lists.u-boot-project.org, mehmet.fide@screeningeagle.com,
Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Subject: Re: [PATCH] usb: ehci-mx6: look up the port number with the usbphy alias
Date: Mon, 23 Nov 2026 10:31:37 +0100 [thread overview]
Message-ID: <a8b913ab-e298-4d42-9b46-e97fcc33e35a@gmail.com> (raw)
In-Reply-To: <20261122205141.748487-1-mehmet.fide@gmail.com>
On 11/22/26 21:51, Mehmet Fide wrote:
> From: Mehmet Fide <mehmet.fide@screeningeagle.com>
>
> mx6_parse_dt_addrs() takes the port number from the alias of the USB
> PHY node, but looks it up with the uclass name "usb" as the stem. The
> PHY nodes only have the aliases usbphy0 and usbphy1, which matched
> only while fdtdec_get_alias_seq() accepted any alias starting with the
> stem. Since that was fixed, the lookup returns -ENOENT and the probe
> fails on i.MX6 without CONFIG_PHY, host and gadget alike.
>
> Look the alias up with the "usbphy" stem.
>
> Fixes: 74b14db48a8e ("fdtdec: match an alias to its stem only when the number follows it")
> Reported-by: Francesco Dolcini <francesco@dolcini.it>
> Closes: https://lore.kernel.org/u-boot/20261122195302.GA432275@francesco-nb/
> Suggested-by: Francesco Dolcini <francesco@dolcini.it>
> Signed-off-by: Mehmet Fide <mehmet.fide@screeningeagle.com>
> ---
> drivers/usb/host/ehci-mx6.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c
> index 25907f22612..93b0d75633f 100644
> --- a/drivers/usb/host/ehci-mx6.c
> +++ b/drivers/usb/host/ehci-mx6.c
> @@ -609,8 +609,7 @@ static int mx6_parse_dt_addrs(struct udevice *dev)
> #if defined(CONFIG_MX6)
> int anatop_off, ret, devnump;
>
> - ret = fdtdec_get_alias_seq(blob, dev->uclass->uc_drv->name,
> - phy_off, &devnump);
> + ret = fdtdec_get_alias_seq(blob, "usbphy", phy_off, &devnump);
> if (ret < 0)
> return ret;
> priv->portnr = devnump;
Tested on Apalis iMX6Q 1GB with the configuration we normally use to load
U-Boot over USB:
CONFIG_BOOTCOMMAND="fastboot usb 0"
# CONFIG_CMD_USB_SDP is not set
CONFIG_DEVICE_TREE_INCLUDES="toradex-recovery-u-boot.dtsi"
CONFIG_ENV_IMPORT_FDT=y
# CONFIG_ENV_IS_IN_MMC is not set
# CONFIG_ENV_IS_IN_NAND is not set
CONFIG_ENV_IS_NOWHERE=y
# CONFIG_TDX_CFG_BLOCK_USB_GADGET_PID is not set
Without the patch, fastboot fails to start:
Hit any key to stop autoboot: 0
g_dnl_register: failed!, error: -2
Apalis iMX6 #
With the patch applied, it works as expected.
Base: e578056c766d ("Merge branch 'main' of
https://git.u-boot-project.org/u-boot/custodians/u-boot-sh")
Tested-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
next prev parent reply other threads:[~2026-11-23 9:31 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-23 11:15 [PATCH v9 0/9] usb: ehci-vf: make the USB host port usable Mehmet Fide
2026-10-23 11:15 ` [PATCH v9 1/9] fdtdec: match an alias to its stem only when the number follows it Mehmet Fide
2026-11-22 19:53 ` [REGRESSION] " Francesco Dolcini
2026-11-22 20:51 ` [PATCH] usb: ehci-mx6: look up the port number with the usbphy alias Mehmet Fide
2026-11-23 9:31 ` Emanuele Ghidoli [this message]
2026-11-22 20:52 ` [REGRESSION] [PATCH v9 1/9] fdtdec: match an alias to its stem only when the number follows it Mehmet Fide
2026-10-23 11:15 ` [PATCH v9 2/9] usb: ehci-vf: take the controller index from the device tree Mehmet Fide
2026-10-23 11:15 ` [PATCH v9 3/9] usb: ehci-vf: remove the code path for a build without DM_USB Mehmet Fide
2026-10-23 11:15 ` [PATCH v9 4/9] usb: ehci-vf: drop the empty bind hook Mehmet Fide
2026-10-23 11:15 ` [PATCH v9 5/9] usb: ehci-vf: use usb_get_dr_mode() Mehmet Fide
2026-10-23 11:15 ` [PATCH v9 6/9] usb: ehci-vf: request the ID detect gpio through the device Mehmet Fide
2026-10-23 11:15 ` [PATCH v9 7/9] usb: ehci-vf: take the register bases from the device tree Mehmet Fide
2026-10-23 14:23 ` Marek Vasut
2026-10-23 14:35 ` Mehmet Fide
2026-10-23 19:34 ` Marek Vasut
2026-10-23 11:15 ` [PATCH v9 8/9] usb: ehci-vf: sort the includes Mehmet Fide
2026-10-23 13:49 ` Marek Vasut
2026-10-23 11:15 ` [PATCH v9 9/9] usb: ehci-vf: enable the vbus supply of the port Mehmet Fide
2026-11-14 15:24 ` [PATCH v9 0/9] usb: ehci-vf: make the USB host port usable Mehmet Fide
2026-11-15 14:21 ` Marek Vasut
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=a8b913ab-e298-4d42-9b46-e97fcc33e35a@gmail.com \
--to=ghidoliemanuele@gmail.com \
--cc=emanuele.ghidoli@toradex.com \
--cc=festevam@gmail.com \
--cc=francesco@dolcini.it \
--cc=marek.vasut+usb@mailbox.org \
--cc=mehmet.fide@gmail.com \
--cc=mehmet.fide@screeningeagle.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.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