Repository navigation
soc: apple: sleep: take the T6050 sleep from its DT node alone - #3740
Conversation
apple_t6050_sleep_property() also required the machine compatible "apple,t6050" before it looked at the "apple,t6050-sleep" node. The node is the description of the firmware-driven sleep; a board without that SoC has no such node. Drop the machine-name check. Every in-tree DTB with an available apple,t6050-sleep node is a T6050 machine (j714s, j716c, k116s), so the result is unchanged for all of them. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
There was a problem hiding this comment.
Verdict: MERGE at 6448161
Checked: sleep.h. Only the root-compatible condition goes; an available apple,t6050-sleep node, plus @prop when one is given, still decides. Your pylibfdt pass over the 141 apple DTBs at b2cd21f shows old == new for every one (only T6050 trees carry the node), so no in-tree DT changes behaviour.
Follow-ups: none. The merge gate still needs one T6050 row from an owner.
|
Merging at 6448161 under the 12-01 bar: one non-author approval + local proof while linux PR CI is ~19 h behind (B1-CI-REVIEW 17:30). Local proof: this head's own touched-object W=1 build + its KUnit/host tests (see body), plus all ten B1-GATES heads merged on main a29e/b2cd (57856a3b7327) build clean together (drivers/gpu/drm/asahi + apple, soc/apple, mfd, tipd, centauri, pmdomain: rc 0, no warning in a touched file). Boards without a row stay in Not yet; a regression gets a same-day revert. |
What:
apple_t6050_sleep_property()(include/linux/soc/apple/sleep.h) no longer checks the machine compatibleapple,t6050. The availableapple,t6050-sleepnode, which is the description of the firmware-driven sleep, decides alone. No board or SoC name left in this helper. Audit gate: linux#2201 / #2445, section 3 MED.Tested: at 6448161: apple dtbs build (141); the DT check below finds 0 differences across 141 DTBs;
W=1build of apple-sio, macsmc, irq-apple-aic, dwc3-apple and apple-dart is clean (dwc3-apple has the same kernel-doc warnings as main); host test display26-tests passes (it mocks sleep.h).Risk: two-way door. It only drops a condition, and every DTB with the node is a T6050 machine. Affected boards: T6050 J714s, J716c and K116s. We own none of them (K114s is not ours to touch).
Not yet: a row on a T6050 machine from its owner (J714s, J716c or K116s). No hardware row from us.
DT equivalence proof (fdt per compiled dtb)
Old = root compatible has
apple,t6050AND the firstapple,t6050-sleepnode is available (and has the property for theapple,display-method-sleepvariant). New = the same check without the root compatible. Script:proof_sleeph.py(pylibfdt overmake dtbsat aurora/main b2cd21f; this PR does not change any DTS).Every other T6050 DTB (j714c, j716s, j775c/d, j873s, k114c/s, k116c) is old=False new=False. No non-T6050 DTB has the node.