Repository navigation
mfd: macsmc: T6050: register the gP GPIO bank where the tree describes it - #2939
Conversation
|
Review at 2e607bf. Changes requested, for the commit trailer only. The change itself is right.
Row owed: once #2922 is in, a J716s boot on this tree at its head, showing the gP bank registering, |
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist review at 2e607bfb94239d634a4787ce64503f1cf79e977b.
Code & Fork CI Safety Audit
- Code (
drivers/mfd/macsmc.c, +5/-2) — Clean: AddingMFD_CELL_OF("macsmc-gp-gpio", NULL, NULL, 0, 0, "apple,smc-gpio")toapple_smc_t6050_described_devs[]is sound and safe.apple_smc_add_described_devices()checksof_get_compatible_child(smc->dev->of_node, cells[i].of_compatible)(and balancesof_node_put(np)) before callingdevm_mfd_add_devices(), so T6050 devicetrees without anapple,smc-gpiochild node are completely unchanged. Using"macsmc-gp-gpio"avoids aPLATFORM_DEVID_NONEname collision withapple_smc_described_devs's"macsmc-gpio"(apple,smc-pcio-gpio), anddrivers/gpio/gpio-macsmc.cbinds both by compatible and already handlesapple,j716sgP13. - Fork CI Safety: Workflow run
45109476074(Host tests, forkja-818/linux) isaction_required. The diff touches onlydrivers/mfd/macsmc.c(no workflow, script, Makefile, or Kconfig edits) and is safe for maintainer CI approval once re-pushed.
Blockers
- §4 Commit attribution (Hard Blocker):
Commit2e607bfb94239d634a4787ce64503f1cf79e977bcontainsCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>in its commit message. Per §4 of the pre-PR checklist, commits must carry human identity and a humanSigned-off-by:only, with zero AI co-author, sign-off, orAssisted-by:trailers inside commits. Please drop theCo-Authored-By:line from the commit and re-push. - §5 Evidence & CI:
- Fork CI (
Host tests) has not run yet (action_required). - The J716s test result in the commit/PR was collected on a different kernel tree (
omarchy-m5v272-17), and this change is a no-op onaurora-silicon/linuxuntil the J716s DT dependency (#2922) adds theapple,smc-gpionode. Once re-pushed (and paired with #2922), please post a J716s boot row onaurora-silicon/linuxconfirming thegPbank registration (First GPIO key: gP01),pcie-appleN1 probe without deferral, Wi-Fi/Bluetooth up, and regression counts (0 SELinux denials, 0 failed units, 0 new kernel errors).
- Fork CI (
Checklist Summary
- §1 No model gating: Pass (uses existing
apple_smc_t6050_described_devsDT-described cell mechanism; no board gate added). - §2 Production-ready, no hacks: Pass.
- §3 Safety: Pass.
- §4 Clean-room & attribution: Blocked on
Co-Authored-By:AI trailer in commit2e607bfb94. - §5 Evidence: Blocked on fork CI (
action_required) and owed J716s hardware row on this tree. - §6 Naming: Pass.
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at 2e607bfb9423
Blockers:
- Commit
2e607bfbcarries aCo-Authored-By:trailer naming an AI tool. Fix:git commit --amend -s, remove the trailer, force-push. - Missing row: one T6050 at this head with the gP GPIO bank registered from the tree and its consumers working. I've approved the waiting CI run.
Rows before merging: macsmc.c runs on every Mac, so besides the T6050 row it also needs one boot at this head on another generation with the SMC and its children bound as before.
Checked: thank you. No Apple material, no gates: the bank is registered where the tree describes it.
Superseded by the review at 2e607bf
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
…s it
On T6050 the SMC registers its input, power and hwmon cells, the PCIO
and low GPIO banks and the described reboot and RTC cells. The gP bank
(apple,smc-gpio) is only in the list for the other SoCs. The J716s's N1
port names its power line on that bank (pwren-gpios = <&smc_gpio 0x13
...>), so pcie-apple's port probe waits for a GPIO provider that never
appears: "Port /pcie@1cb0000000/pci@0,0 probe fail", deferred forever,
and no PCIe device, Wi-Fi or Bluetooth.
Register the gP bank with the T6050 described cells, under a cell name
of its own ("macsmc-gpio" is the PCIO bank's; gpio-macsmc binds both by
compatible). Only the J716s's tree describes the bank today, so no other
T6050 board changes.
Tested on one J716s (27.2 stub 26B123, omarchy-m5's v272-17 kernel with
this change) with pwren-gpios kept in its tree: the gP bank registers
("First GPIO key: gP01"), pcie-apple probes the N1 port with no
deferral, and Wi-Fi and Bluetooth come up.
Signed-off-by: Julian Arango <julianarango1818@gmail.com>
2e607bf to
0a57322
Compare
|
Thanks. v2 is pushed, rebased on main: no Co-Authored-By. On ordering (Ryan's 3): this doesn't wait for #2922. t6050-j716s.dts on main already has the gP bank ( J716s (16" M5 Pro, 27.2 stub) at 0a57322, merged with #2872, #2921 and #2922 on main efed1ae: The other generation you ask for (SMC and its children bound as before): I only have the J716s. The change only adds a cell to |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verified v2 at 0a57322c3aa3: commit trailer is clean (human Signed-off-by only), change is confined to apple_smc_t6050_described_devs so non-T6050 SoCs do not read it, and exact-head J716s boot confirms macsmc-gp-gpio (gP01) registers and pcie-apple adopts the N1 port without deferral.
What: On T6050 macsmc registers the SMC's gP GPIO bank only for the other SoCs, so the J716s's N1 port (
pwren-gpioson gP13) defers pcie-apple's probe forever: no PCIe, Wi-Fi or Bluetooth. This registers the bank with the T6050 described cells, under its own cell name ("macsmc-gpio" is the PCIO bank's).Tested: J716s (M5 Pro 16") at 0a57322: gP bank registered (
First GPIO key: gP01), pcie-apple adopts the N1 port with no deferral, Wi-Fi and Bluetooth up; no new macsmc or pcie-apple errors.Risk: two-way door · T6050 boards whose tree describes
apple,smc-gpio(today only the J716s); other SoCs don't read this listNot yet: a boot on another generation.
Details
Only the J716s's tree describes the bank today, so no other board changes. It doesn't depend on #2922: t6050-j716s.dts on main already describes the bank and pwren-gpios.
Evidence
J716s, test boot 2026-11-25, kernel main efed1ae merged with 0a57322 (and #2872, #2921, #2922):
No
probe failfor/pcie@1cb0000000/pci@0,0; the N1's Wi-Fi joined and Bluetooth was powered. Without a gP bank, a J716s tree with pwren-gpios logsPort /pcie@1cb0000000/pci@0,0 probe failand the port defers forever (the first J716s boot, on omarchy-m5's v272-17 kernel, betizzel/omarchy-m5#28).