From: Francesco Dolcini <francesco@dolcini.it>
To: Xu Yang <xu.yang_2@nxp.com>
Cc: Franz Schnyder <fra.schnyder@gmail.com>,
Thinh.Nguyen@synopsys.com, gregkh@linuxfoundation.org,
shawnguo@kernel.org, s.hauer@pengutronix.de,
kernel@pengutronix.de, festevam@gmail.com,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
jun.li@nxp.com, Francesco Dolcini <francesco@dolcini.it>
Subject: Re: [PATCH v3 3/3] usb: dwc3: imx8mp: disable auto suspend for host role
Date: Mon, 13 Jul 2026 09:54:34 +0200 [thread overview]
Message-ID: <20260713075434.GA32373@francesco-nb> (raw)
In-Reply-To: <25fqcu6itk47tvm4qto7zw2r4cno7kryxi7a6lo6ddbxwzbakx@nj3ytoy44ynl>
Hello Xu,
On Wed, May 27, 2026 at 02:33:05PM +0800, Xu Yang wrote:
> On Tue, May 19, 2026 at 10:54:58AM +0200, Franz Schnyder wrote:
> > On Tue, May 12, 2026 at 05:53:57PM +0800, Xu Yang wrote:
> > I've attached the logs below with and without the commit. looking at
> > what happens before the warning I think the problem is that after probe
> > deferral the depopulate path races with the device link state changes
> > from the fw_devlink cycle fixup.
> >
> > One important thing to mention is, that we build dwc3 and typec as modules.
> > If I build them as built-in I can't reproduce the kernel warning so far.
>
> Thank your for the information.
>
> It's indeed an important finding. I can reproduce the issue when I build the
> driver as modules.
Just a head-up on this
7.2.0-rc3 is not ok on this regard
```
[ 6.285930] WARNING: /usr/src/kernel/drivers/base/core.c:1706 at device_del+0x2b4/0x388, CPU#5: (udev-worker)/409
[ 6.285950] Modules linked in: ulpi(+) ehci_hcd amc6821(+) nvmem_imx_ocotp_ele tcpci(+) tcpm roles phy_fsl_imx8mq_usb usbmisc_imx ina2xx typec dwc3_imx8mp(+) lm75 imx93_adc spi_nxp_fspi i2c_mux_pca954x svc_i3c_master i3c flexcan spi_fsl_lpspi can_dev pwm_imx_tpm gpio_keys display_connector evdev fuse autofs4
[ 6.286031] CPU: 5 UID: 0 PID: 409 Comm: (udev-worker) Not tainted 7.2.0-rc3-0.0.0-devel #1 PREEMPT
[ 6.286039] Hardware name: Aquila iMX95 on Aquila Development Board (DT)
[ 6.286044] pstate: 20400009 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 6.286050] pc : device_del+0x2b4/0x388
[ 6.286057] lr : device_del+0x1b8/0x388
[ 6.286063] sp : ffff80008364b740
[ 6.286067] x29: ffff80008364b760 x28: 000000000000000c x27: ffff800081347ea8
[ 6.286078] x26: 0000000000000000 x25: 0000000000000000 x24: ffff000087ae28c8
[ 6.286088] x23: ffff000087ae28c0 x22: ffff000080a6c010 x21: 0000000000400140
[ 6.286099] x20: ffff8000814c8e60 x19: ffff000087ae2810 x18: 0000000000000000
[ 6.286110] x17: 0000000000000000 x16: 00000000000017fb x15: 0003a7018ef1930c
[ 6.286120] x14: 0000000000000225 x13: ffff800080d6f068 x12: 0000000000000000
[ 6.286130] x11: 00000000000000c0 x10: 0000000000000a30 x9 : 000000000000003c
[ 6.286141] x8 : ffff80008364b640 x7 : ffff000080001540 x6 : fffffdffc22a7600
[ 6.286151] x5 : ffff800080232cac x4 : ffff00008001fe00 x3 : ffff00008a9d8280
[ 6.286161] x2 : ffff000087ae28b8 x1 : 0000000000000003 x0 : ffff0000813fb800
[ 6.286172] Call trace:
[ 6.286177] device_del+0x2b4/0x388 (P)
[ 6.286185] platform_device_del+0x2c/0xa0
[ 6.286194] platform_device_unregister+0x14/0x3c
[ 6.286202] of_platform_device_destroy+0xf0/0x100
[ 6.286211] device_for_each_child_reverse+0x6c/0xc4
[ 6.286219] of_platform_depopulate+0x34/0x80
[ 6.286225] dwc3_imx8mp_probe+0x268/0x3f0 [dwc3_imx8mp]
[ 6.286241] platform_probe+0x80/0xac
[ 6.286248] really_probe+0xc0/0x3e0
[ 6.286255] __driver_probe_device+0x164/0x1bc
[ 6.286261] driver_probe_device+0x3c/0x118
[ 6.286268] __driver_attach+0xc8/0x21c
[ 6.286274] bus_for_each_dev+0x7c/0xdc
[ 6.286282] driver_attach+0x24/0x30
[ 6.286288] bus_add_driver+0x11c/0x260
[ 6.286294] driver_register+0x68/0x124
[ 6.286301] __platform_driver_register+0x24/0x30
[ 6.286307] dwc3_imx8mp_driver_init+0x28/0xfdc [dwc3_imx8mp]
[ 6.286317] do_one_initcall+0x60/0x1d4
[ 6.286327] do_init_module+0x54/0x244
[ 6.286336] load_module+0x18a0/0x2040
[ 6.286342] init_module_from_file+0xd8/0xf0
[ 6.286349] __arm64_sys_finit_module+0x208/0x35c
[ 6.286356] invoke_syscall.constprop.0+0x48/0xe4
[ 6.286364] do_el0_svc+0xa8/0xbc
[ 6.286371] el0_svc+0x40/0x228
[ 6.286379] el0t_64_sync_handler+0xa0/0xe4
[ 6.286385] el0t_64_sync+0x198/0x19c
[ 6.286394] ---[ end trace 0000000000000000 ]---
```
prev parent reply other threads:[~2026-07-13 7:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-08 8:14 [PATCH v3 1/3] usb: dwc3: drd: extend dwc3_pre_set_role() to extcon and otg usecase Xu Yang
2026-01-08 8:14 ` [PATCH v3 2/3] usb: dwc3: imx8mp: rename dwc3 to dwc3_pdev in struct dwc3_imx8mp Xu Yang
2026-01-08 8:14 ` [PATCH v3 3/3] usb: dwc3: imx8mp: disable auto suspend for host role Xu Yang
2026-05-07 10:46 ` Franz Schnyder
2026-05-08 10:54 ` Xu Yang
2026-05-08 16:04 ` Franz Schnyder
2026-05-09 12:46 ` Francesco Dolcini
2026-05-12 9:58 ` Xu Yang
2026-05-12 9:53 ` Xu Yang
2026-05-19 8:54 ` Franz Schnyder
2026-05-27 6:33 ` Xu Yang
2026-07-13 7:54 ` Francesco Dolcini [this message]
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=20260713075434.GA32373@francesco-nb \
--to=francesco@dolcini.it \
--cc=Thinh.Nguyen@synopsys.com \
--cc=festevam@gmail.com \
--cc=fra.schnyder@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=imx@lists.linux.dev \
--cc=jun.li@nxp.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=xu.yang_2@nxp.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.