Repository navigation
usb: typec: tipd: take the J700 DP status exclusion from the port's DT - #3747
RyanTheTide wants to merge 2 commits into
Conversation
cd321x_uses_dp_sid() left the SN201202x DP status updates (DP_SID_UPDATE and the DP SID status) unused on any machine compatible with apple,t8140: the J700's external display pipe is kept across a hot plug and does not retrain on an HPD change replayed from those updates. Describe that on the port instead: a port whose DT gives apple,no-dp-sid-update takes the HPD level from DATA_STATUS alone. Both J700 ports get the property, so the J700 behaves as before, and no driver check reads the root machine compatible for it any more. Document the property in the SN201202x binding and model the J700 DT in the apple-dcp host fixtures that extract cd321x_uses_dp_sid(). Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
There was a problem hiding this comment.
Verdict: MERGE at 8244ebc
Checked: binding, the j700 DTS (both SN201202x nodes) and core.c. cd321x_uses_dp_sid() now reads apple,no-dp-sid-update from the port instead of the t8140 machine compatible. The in-tree J700 is the only T8140 DT, and it carries the property on both ports, so in-tree behaviour is unchanged. The host selftest stubs follow.
Follow-ups: none. Old-DT exposure on the J700 is noted in Risk.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Correct: the same J700 behaviour from the port's DT, and other SN201202x ports are unchanged (property absent). The binding and fixtures match. Still to do: a merge-up (it conflicts with main), then the J700 row (DP partner hot plug and unplug on both ports). Because tipd is shared, it also needs a quick non-J700 SN201202x row. I've queued both.
- apple,sn201202x.yaml: main added apple,no-data-role-swap where this branch adds apple,no-dp-sid-update. Keep both. - apple-dcp transaction.py: main's tipd_init() now calls of_machine_is_compatible() for h17_display, so the probe fixture needs its of_machine_is_compatible shim again. Keep main's line. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Merged main into this branch as
Against main Local checks on the merge tree, arm64 + asahi config, LLVM=1:
What's left:
|
|
Independent review of merge Against main, the merge is this PR's binding, J700 DT, Note: #3747 and #3748 add lines at the same spots in the binding and in |
|
J773g (Apple M4 Mac mini, T8132, firmware 27.2) receipt at exact head
|
What:
cd321x_uses_dp_sid()no longer reads the root machine compatible (!of_machine_is_compatible("apple,t8140"), kept by #3649). A port whose DT gives the new booleanapple,no-dp-sid-updatetakes the DP partner's HPD level from DATA_STATUS alone; both J700 SN201202x nodes get it, so the J700 keeps today's behaviour and every other SN201202x is unchanged. Binding documented inapple,sn201202x.yaml.Tested: at 8244ebc:
make W=1 drivers/usb/typec/tipd/(arm64, clang 22) builds, with no new warnings;apple/t8140-j700.dtbbuilds with CHECK_DTBS=y and no warnings, and the dtb has the property on usb-pd@a and usb-pd@c;dt_binding_check DT_SCHEMA_FILES=usb/apple,sn201202x.yamlis clean; apple-dcp host selftestsrun.py(all groups) 99/99 ok. No hardware row yet (see Not yet).Risk: two-way door. J700 only, and only if its DT lacks the property (an older DT with this kernel would turn on DP SID updates on the J700). No other board changes.
Not yet: a row on the J700 (Neo). A module one-shot on the Neo failed in my build tooling before any of this PR's code ran (the out-of-tree build's ABI did not match the running edge kernel), so the Neo row is still owed.
Detail
lifecycle.pyfixture models the J700 DT with adevice_property_read_boolshim.transaction.pydrops its now-unusedof_machine_is_compatibleshim.