Repository navigation
usb: typec: tipd: take the USB4 router when it binds after the deferred-probe timeout (aurora-wip) - #858
Merged
Conversation
A CD321x port waits for its USB4/Thunderbolt router only until the driver core stops waiting for missing dependencies, ten seconds after the last driver bound. After that it continues without the router for good: a Thunderbolt or USB4 dock still enters TBT mode on the Type-C side, but ACIO is never started, the NHI is never populated and only the dock's USB 2.0 hubs appear. Fedora's initramfs carries tps6598x for USB keyboards at an encrypted root's passphrase prompt, but not thunderbolt_apple. While the prompt waits, the deferred probe timeout fires and the ports give up; the router module loads from the root filesystem twenty seconds later and registers its switches with nobody to take them. On a J414s with LUKS: [14.308] tps6598x 0-003b: deferred probe timeout, ignoring dependency [14.308] tps6598x 0-003b: USB4/Thunderbolt router unavailable, continuing without it [31.156] systemd[1]: Switching root. The same machine's Arch install, without LUKS, switches root at 2 s and its docks work. Keep a port that gave up on its router watching for it. The typec core now notifies watchers when a USB4/Thunderbolt switch registers; the port looks its router up again, takes the switch and reapplies the current cable through it with the restore event used after system sleep, so a dock attached since boot gets its tunnels too. The watch starts after the probe-time lookup and is followed by one lookup of its own, so a router that registers in between is not missed. Removal stops the watch and drains a pending lookup before it releases the switch. Assisted-by: Claude Opus 5.5 Signed-off-by: DjDeveloperr <[email protected]>
RyanTheTide
added a commit
that referenced
this pull request
Nov 2, 2026
…outer (#858) selftests: apple-dcp: follow the late USB4 router watch in cd321x probe
This was referenced Nov 2, 2026
notmysegv
pushed a commit
to notmysegv/linux
that referenced
this pull request
Nov 4, 2026
Bring integration/aurora up to aurora-wip 437edfa, the source of the 7.3.0-aurora-fleet14b kernel that was promoted on the M1 Pro, M2, Neo and J616s on 2026-11-01. This takes the aurora-wip work since the two branches diverged, including the 2026-11-01 sync of integration/aurora into aurora-wip (aurora-silicon#761), up to and including aurora-silicon#764. integration/aurora had two changes aurora-wip lacked at this point: the tipd late USB4 router fix (aurora-silicon#855) and SEP keybag creation in the shared xART window (aurora-silicon#856). aurora-wip carries the same patches as aurora-silicon#858 and aurora-silicon#860, which come in with a later batch. Two conflicts, both where the two sides added lines next to each other: the KUnit prototype list in tps6598x.h (both kept, in aurora-silicon#858's order) and the aurora-sep PKGBUILD checksums (recomputed from the merged files; they match aurora-silicon#860's). The merged tree is identical to aurora-wip 437edfa with the aurora-silicon#858 and aurora-silicon#860 patches applied. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
notmysegv
pushed a commit
to notmysegv/linux
that referenced
this pull request
Nov 4, 2026
…nto integration/aurora Bring integration/aurora up to the aurora-wip tip 9ff2b9a. After this merge the two branches have the same tree. The range contains the fleet14o source c243830 (aurora-silicon#857, aurora-silicon#858, aurora-silicon#795, aurora-silicon#859), which was promoted on all four machines on 2026-11-02 and 03, and the merges after it: aurora-silicon#861 (apple-dcp selftest stubs for aurora-silicon#858), aurora-silicon#860 (SEP keybag in the shared xART window, the aurora-wip copy of aurora-silicon#856), aurora-silicon#724 (J616s boot NOR, both parts), aurora-silicon#779 (ALS colour temperature ABI), aurora-silicon#862 (J700 GD25UF16E boot NOR, the Neo bless fix), aurora-silicon#863 (J616s ANE H16 start stall), aurora-silicon#797 (T6000 DCS whole-word writes) and aurora-silicon#803 (G17 keeps innocent clients alive across another client's recovery). aurora-silicon#858 and aurora-silicon#860 make the same changes integration/aurora already had as aurora-silicon#855 and aurora-silicon#856, so they merge without conflicts. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The aurora-wip copy of #855 (same code; only comment wording differs from #855's trimmed comments, checked by diffing both patches with comments stripped).
The distribution kernels are pinned from aurora-wip, so the fix lands here as well as on integration/aurora.
Problem
With an encrypted root, the initramfs waits at the passphrase prompt while
thunderbolt_appleis not yet loadable. The 10 s deferred-probe timeout fires, cd321x continues without the USB4 router, and it never looks for it again in that boot. No port holds the router, soapple_cio_start()never runs, no NHI is created, the thunderbolt bus stays empty, and every dock (at boot or hot-plugged later) runs USB 2.0 only.Fix
cd321x continues without the router but takes it when it binds, then re-applies the current cable state.
Tested on hardware (MacBook Pro M2 Pro, J414s, Aurora Fedora 44, kernel 7.3.0-12 with this branch's typec/tipd modules)
thunderbolt_applealso in the initramfs (fedora-aurora Mac Studio · M3 family #128): dock found at 4.0 s, no "router unavailable" at all.Known, separate: the DP tunnel logs "activation failed, aborting" once or twice before it comes up; it recovers on its own.
🤖 Generated with Claude Code