* [PATCH v2] thunderbolt: xdomain: notify peers after enumeration
@ 2026-06-24 6:09 Milo Chen
2026-06-25 6:49 ` Mika Westerberg
0 siblings, 1 reply; 2+ messages in thread
From: Milo Chen @ 2026-06-24 6:09 UTC (permalink / raw)
To: Mika Westerberg
Cc: Andreas Noever, Michael Jamet, Yehezkel Bernat, linux-usb,
linux-kernel, Milo Chen
Service drivers may register local XDomain properties while discovery is
still in progress. This can cause the properties changed notification to be
sent before the peer is ready to act on it.
If the peer has already read the local property block before the service
was registered, it may keep using the old property generation and miss the
newly registered service. With ThunderboltIP this can leave the network
service half-discovered after a warm reboot and the login request
eventually times out.
Queue another properties changed notification after the XDomain reaches
ENUMERATED so the peer can re-read the final local properties.
Signed-off-by: Milo Chen <cmh79479@gmail.com>
---
Changes in v2:
- Use full name in From and Signed-off-by.
drivers/thunderbolt/xdomain.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/thunderbolt/xdomain.c b/drivers/thunderbolt/xdomain.c
index 86b2f7474..9c068d073 100644
--- a/drivers/thunderbolt/xdomain.c
+++ b/drivers/thunderbolt/xdomain.c
@@ -1811,6 +1811,7 @@ static void tb_xdomain_state_work(struct work_struct *work)
tb_xdomain_failed(xd);
} else {
xd->state = XDOMAIN_STATE_ENUMERATED;
+ tb_xdomain_queue_properties_changed(xd);
}
break;
base-commit: 502d801f0ab03e4f32f9a33d203154ce84887921
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH v2] thunderbolt: xdomain: notify peers after enumeration
2026-06-24 6:09 [PATCH v2] thunderbolt: xdomain: notify peers after enumeration Milo Chen
@ 2026-06-25 6:49 ` Mika Westerberg
0 siblings, 0 replies; 2+ messages in thread
From: Mika Westerberg @ 2026-06-25 6:49 UTC (permalink / raw)
To: Milo Chen
Cc: Andreas Noever, Michael Jamet, Yehezkel Bernat, linux-usb,
linux-kernel
On Wed, Jun 24, 2026 at 02:09:09PM +0800, Milo Chen wrote:
> Service drivers may register local XDomain properties while discovery is
> still in progress. This can cause the properties changed notification to be
> sent before the peer is ready to act on it.
>
> If the peer has already read the local property block before the service
> was registered, it may keep using the old property generation and miss the
> newly registered service. With ThunderboltIP this can leave the network
> service half-discovered after a warm reboot and the login request
> eventually times out.
>
> Queue another properties changed notification after the XDomain reaches
> ENUMERATED so the peer can re-read the final local properties.
>
> Signed-off-by: Milo Chen <cmh79479@gmail.com>
Applied to thunderbolt.git/next, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-25 6:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-24 6:09 [PATCH v2] thunderbolt: xdomain: notify peers after enumeration Milo Chen
2026-06-25 6:49 ` Mika Westerberg
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.