Repository navigation
soc: apple: display gate: say why the port controller link stays managed - #613
Merged
Merged
Conversation
The supplier link from each T6041 port controller to its display processor becomes a managed device link. Unbinding the processor therefore unbinds the port controllers as well, and USB on those ports is down until the processor is bound again. A stateless link would avoid that, but it would leave the port unusable. The controller holds one mux handle for its USB and display muxes, and once the display route is unregistered, typec_mux_begin() refuses every transaction on that handle with -ENODEV. A controller left bound could not even return the port to the safe or USB state on the next plug, and would never take the routes the processor registers when it is bound again. With the managed link the controller probes again once the processor is back, with every mux. Also note why the deferred probe timeout cannot make a controller take only its USB muxes. The wait is a fwnode link until the processor has a device, which the timeout does not touch. The device is created with its node enabled, and from then on the Type-C core defers for the routes that are not registered yet. No functional change. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Build: arm64 defconfig + asahi.config, LLVM=1 (clang 22.1.6), W=1. The touched objects build with no warnings and no errors. 🤖 Generated with Claude Code |
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.
Follow-up to #564. This adds a comment and makes no functional change.
The question was whether the supplier link from each T6041 port controller to dcpext1 should be stateless, because unbinding dcpext1 unbinds the port controllers and takes USB down. It should stay managed.
typec_mux_begin()refuses every transaction on that handle with -ENODEV (deliberate since78e061908a87), the safe and USB states included. A controller left bound would therefore be unable to switch the port on the next plug, and would never take the routes when dcpext1 binds again.602e00000.dcp--spmi:1-0a,1-0cand2-0cas managed and active.dcp_typec_routes_disable()), and the controllers then probe without them.The same code is on aurora-wip.
Status
checkpatch --strictis clean apart from the requiredCo-Authored-Byform.602e00000.dcpand expect sn201202x to unbind and USB to go down (the GUI dies too). Bind it again and expect sn201202x to probe again and USB to return. Then boot withdeferred_probe_timeout=1and confirm the port controllers bind with the display routes and are never probed again.🤖 Generated with Claude Code