Repository navigation
usb: typec: tipd: take the J575c's LOCK key from the DT - #3146
Merged
DjDeveloperr merged 2 commits intoNov 25, 2026
Merged
Conversation
The tipd driver renegotiates the connection that a J575c port inherits
from the boot chain (apple,reset-inherited-usb2-connection). The DISC
command it sends for that needs the controller unlocked by LOCK with
the board's key, the board number reversed. The driver keeps that key
in a table of machines. Describe it on the three ports that are
renegotiated, with the binding's apple,debug-lock-key, so the driver
can take it from there instead of its table.
The key is the one the driver uses today ("575J"). Elsewhere the
driver reads the property for a debug link that a sleep cut (these
ports have none), for the boot power state's HChk and USBw (the J575c
ports are in S0 already at the probe), and for the post-sleep replug
of a T6050 host. None of that runs on these ports.
Signed-off-by: Roberto Dantas <7robertodantas@gmail.com>
The renegotiation of an inherited connection took its LOCK key, and whether a failure fails the probe, from a table of machines (cd321x_inherited_boards[]). The J575c ports now carry their key in apple,debug-lock-key, which the partner replug already reads. Take the key from there when the port has one, and drop the J575c row. A port with its key in the DT is left as it was when the renegotiation fails, as the J575c row asked. The J716c keeps its row and its behaviour: its DT has no key yet, and a failure still fails its probe. A port with the property but no key either way keeps its connection as it is, with a warning, so a J575c booted with an older DT comes up as before the renegotiation instead of failing. Signed-off-by: Roberto Dantas <7robertodantas@gmail.com>
This was referenced Nov 25, 2026
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
satchlj
approved these changes
Nov 25, 2026
satchlj
left a comment
Member
There was a problem hiding this comment.
Verdict: MERGE at 2375501aa80a
Blockers: none
Checked: Full diff audit of the J575c apple,debug-lock-key = "575J" DT migration on hpm1-3, removal of the J575c table entry from cd321x_inherited_boards[] while keeping the J716c entry intact, graceful fallback behavior for older J575c DTs without the property, exact-head J575c USB3 + s2idle verification row in the PR body, and all 4 CI checks green (0 active, 0 failing).
Evidence
- DT and driver diff (
2375501aa80a): addsapple,debug-lock-key = "575J"tohpm1-hpm3in the J575c DTS, removes the J575c quirk row fromcd321x_inherited_boards[], preserves the J716c row unchanged, and retains best-effort fallback when the DT property is absent. - CI at
2375501aa80a(paginated check-runs by latest run ID):4/4green (dt-checks,host-tests,pr-text,readiness;0active,0failed). - Hardware row in PR body: J575c at exact head
2375501a,hpm1-hpm3inherited renegotiation, 10 Gb/s UAS USB 3 drive, s2idle cycle recovery,0failed units,0new kernel errors.
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.
What: Follow-up to #2875: the J575c's renegotiation key moves from the tipd table into its DT (
apple,debug-lock-key = "575J"on hpm1-3), and the J575c row is dropped. This is half of what I said in #2875: the J716c row stays, so the table stays with one row (why below).Tested: J575c at 2375501: hpm1-3 renegotiate their inherited connections at probe, a USB 3 drive comes up at 10 Gb/s (uas), and everything comes back after an s2idle cycle; 0 failed units, 0 new kernel errors.
Risk: two-way door · J575c; shared tipd code, but ports without
apple,debug-lock-keyand the J716c (table row kept) keep their current path.Not yet: J716c (no hardware here; unchanged). The no-key fallback (older J575c DT) was last run on 7.3.0-1-110 with the same commits; that code has not changed since.
Details
In the #2875 review I said I'd move the LOCK key into the J575c and J716c DTs and drop
cd321x_inherited_boards[]. This PR does the J575c half.arm64: dts: apple: t6041-j575c: give the port controllers their LOCK key:apple,debug-lock-key = "575J"on hpm1-3, the three ports withapple,reset-inherited-usb2-connection. hpm0 (the debug port) is unchanged.usb: typec: tipd: take the J575c's renegotiation key from the DT: the renegotiation takes the key fromapple,debug-lock-keywhen the port has one, best effort as the J575c row was, and the J575c row is dropped. A port with the property but no key, from the DT or the table, gets a warning and keeps its connection, so a J575c booted with an older DT comes up as it did before usb: typec: tipd: J575c: renegotiate every inherited connection #2875 (USB2 on those ports) instead of failing.The DT commit comes first, so the driver change is never in a tree without the key in the J575c DT.
J716c: not changed. Its row stays in the table, with its key and its behaviour (a failed renegotiation fails the probe). Moving its key to the DT would also make the J716c boot port a debug port for the driver's other uses of
apple,debug-lock-key: no HChk and no USBw for a controller still in its boot power state at the probe, and the T6050 post-sleep replug. That needs testing on a J716c, and I don't have one. Once someone does it, the table can go.Those other uses don't run on the J575c ports: the debug link rearm needs a debug link that a sleep cut (these ports have none), HChk/USBw need a controller still in its boot power state at the probe (the J575c ports are in S0 already), and the post-sleep replug is
apple,t6050-dwc3only. One visible effect: with the key, the three ports get the debugfsreplugfile (root only, does nothing unless written).Checks: checkpatch 0 errors, 0 warnings on both commits; CHECK_DTBS with
apple,sn201202x.yamlclean for t6041-j575c and t6050-j716c.Evidence
Exact head: kernel 7.3.0-1-113 built from main d7b0aec plus these two commits; its source tree is identical to 2375501 (
git diffempty). Stock command line; DT =t6041-j575c.dtbfrom the same tree, one-shot trial Stage 2.USB 3 drive on 1-06, USB2 hub with keyboard on 1-08, DP monitor on 1-0a, HDMI.
no apple,debug-lock-keywarning; idle: 1-06, 1-08, 1-0c suspended, 1-0a (DP) activeRegression: SELinux N/A (Arch, AppArmor: 0 denials), 0 failed units. Kernel errors: nothing from tipd. Against clean main boots (7.3.0-1-114, main a73023b, no s2idle) the only additions are the s2idle cycle's lines (
genpd_prepare-11 on the dwc3 controllers, brcmfmacLPAS setup failed (-107),ptp: parent end0 should not be sleeping), the shutdown'swatchdog did not stop!and the debugfs tracing automount notice. Against a boot from before this change with an s2idle cycle (7.3.0-1-106, #2875), the only additions are the debugfs notice and devmotion6'sprobe ... failed with error -5, which every main boot today also has. Error lines also present on main: the ASM2214 xHCI firmware is missing, DCPunexpected lane count, devmotion6 -5, a USB2 hub keyboard's -71 retry.Earlier run, same two commits on 48470aa + #2875 (kernel 7.3.0-1-110), with the integration DT (no key): no port renegotiated,
inherited connection not reinitialized: no apple,debug-lock-keyon the three ports, drive at 480Musb-storage, probe OK, 0 failed units.