Repository navigation
input: apple_mtp_kbd: leave every T8142 MTP to the OS - #51
m0d16l14n1 wants to merge 2 commits into
Conversation
|
Thanks for sorting out the J815 keyboard handoff. This adds one more board to the MTP list ( The underlying fact is the same on every MTP machine: the firmware does not survive an RTKit restart. Could the driver use one policy for every MTP (leave it running for the OS, or keep the helper running) selected by the MTP node itself, e.g. a DT property on the We can run rows on our A18 Pro and M4 Pro for a shared policy. |
|
apple_mtp_kbd_probe() in drivers/input/apple_mtp_kbd.c gains of_machine_is_compatible("apple,j815") next to j813 and j604, so the next T8142 board with the same MTP will hit the restart failure again until someone adds it. The reason given is a property of the MTP firmware, not of the board. Return -ENODEV based on the MTP node's compatible (apple,t8142-mtp, as the selector in #55 does) instead of a machine list. Until then this should stay a draft. |
487acad to
6675f7c
Compare
|
@RyanTheTide reworked: the keyboard is now skipped when the helper is |
|
Thanks, this is the shape we asked for: the keyboard is skipped when its Assisted-by: LLM (Claude:Opus 5.5) |
|
Looks good; approve once there is a J704 or J815 boot on this head (or once #55 lands, after which this can be closed). No blockers in the code. drivers/input/apple_mtp_kbd.c:407-416 reads the keyboard's One consequence to record in the commit and in the row: on the J704 (and every T8142 board) U-Boot now has no internal keyboard. That means no key input at the U-Boot prompt or in GRUB, unless GRUB's own driver or a USB keyboard takes over. It is the same trade-off as on the J813, and the right one when the firmware can't be restarted, but a row should show that a GRUB timeout boot still works with no keyboard. The J704 run posted on #55 (head 59d31da) makes the same choice for HW row: J704 or J815, this head as Stage 2 after aura. U-Boot boots GRUB by timeout, and Linux shows MTP firmware hello, keyboard and trackpad registered, no RTKit crash dump, 0 failed units and 0 new kernel errors. Assisted-by: LLM (Claude:Opus 5.5) |
The J813's MTP is skipped because its firmware does not come back once U-Boot shuts it down: iBoot loads and starts it before the OS, and it cannot be started a second time. That is a property of the T8142 MTP, not of the J813, and the J815 has the same one. Select it by the helper's compatible (apple,t8142-mtp, which the J813, J815 and J704 trees carry) instead of the j813 machine, so the J815 and the next T8142 board keep iBoot's running MTP for Linux without another line here. The J704 changes with this: its MTP is now left to the OS too, as on the Airs. The cost, the same as on the J813: on every T8142 board U-Boot has no internal keyboard, so there is no key input at the U-Boot prompt or in GRUB unless GRUB's own driver or a USB keyboard takes over. A GRUB menu still boots its default entry on the timeout, and Linux, which adopts the running MTP, gets the keyboard and trackpad. Not run through U-Boot on a J815 or J704 yet (the J815 boots aura's Stage 2 directly); the J813 keeps its behaviour. Signed-off-by: Nick <[email protected]>
6675f7c to
91e33f5
Compare
|
@RyanTheTide thanks. The trade-off is in the commit message now ( The J704/J815 row (U-Boot as Stage 2 after aura, GRUB timeout boot, MTP hello, keyboard and trackpad in Linux) is still owed. If #55 lands first, I'll close this one. |
|
Re-review at 91e33f5. The code is unchanged from 6675f7c, and the commit message now records the trade-off we asked for: no internal keyboard in U-Boot or GRUB on any T8142 board, with GRUB booting its default entry on the timeout and Linux taking over the running MTP. Nothing new in the code. What's left is the row. HW row: J704 or J815, this head as Stage 2 after aura. Pass: U-Boot boots GRUB by timeout with no key input; Linux shows the MTP firmware hello, keyboard and trackpad registered, no RTKit crash dump, 0 failed units and 0 new kernel errors. If #55 lands first, this can be closed as agreed. Assisted-by: LLM (Claude:Opus 5.5) |
aurora-wip still gives the M5 (T8142) the generic Apple boot defaults: bootflow over NVMe and USB, with "usb start" as preboot. Carry the change that gives it the Aurora flow the M4s and the M5 Max use (EFI path on the internal ESP, then the fallback image, then bootflow on NVMe), with the MTP keyboard left to Linux. The J815 booted from NVMe with it on 62ee470. Not yet sent upstream; the MTP driver half is aurora-silicon/u-boot#51. pkgver stays 2026.07.aurora8, which has not been published. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…3231) * uboot-aurora: pin aurora-wip at 5445237 for M5 NVMe boot 62ee470 can't boot from the NVMe on the M5 (T8142): it doesn't bind the T8140/T8142 ANS controller or find the ESP on it. aurora-wip now carries both fixes, aurora-silicon/u-boot#47 and #50, along with the merged work since #32. The OpenSSL 4 host-tools config is kept. Co-Authored-By: Claude Opus 5.5 <[email protected]> * uboot-aurora: carry the Aurora boot flow for T8142 aurora-wip still gives the M5 (T8142) the generic Apple boot defaults: bootflow over NVMe and USB, with "usb start" as preboot. Carry the change that gives it the Aurora flow the M4s and the M5 Max use (EFI path on the internal ESP, then the fallback image, then bootflow on NVMe), with the MTP keyboard left to Linux. The J815 booted from NVMe with it on 62ee470. Not yet sent upstream; the MTP driver half is aurora-silicon/u-boot#51. pkgver stays 2026.07.aurora8, which has not been published. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…eyboard (#3339) Carry aurora-silicon/u-boot#51 (91e33f54) as aurora9. With aurora8 the J815's MTP crashes when Linux starts it and there is no keyboard or trackpad. Tested on a J815: two reboots, keyboard and trackpad present, no MTP crash. Co-authored-by: Claude Opus 5.5 <[email protected]>
|
J704 (MacBook Pro 14-inch, M5,
Control: with the packaged U-Boot 2026.07 (Nov 10 build) in the same setup, the MTP crashes (RTKit crash dump, This complements the J704 row on #55: that one was on MTP firmware 6300.85.6, this one on the 26.6.2 stub's 5340.61.4. Setup differences, unrelated to the MTP: the display drivers ( Tested by me on the hardware. Assisted-by: LLM (Claude:Opus 5.5) |
Signed-off-by: Nick <[email protected]>
|
Thanks @chrisdavedev for the J704 row at I've merged Marking ready for review. |
|
Merge readiness at
Areas: none matched in CODEOWNERS Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
The T8142 MTP (J813, J815, J704) cannot be started again once U-Boot shuts it down: iBoot loads and starts its firmware before the OS, and a second start fails, as seen on the J813.
Change: the MTP keyboard is skipped when its helper is an
apple,t8142-mtp, the node's own compatible, instead of when the machine is the J813. The J815 and the next T8142 board get it without another line, and iBoot's running MTP reaches Linux untouched. The J604 and T6050 checks are unchanged.Behaviour change: the J704 (MacBook Pro 14" M5) now leaves its MTP to the OS too, as the Airs do.
Overlap: #55 makes the same choice inside one MTP hand-off selector (
apple,t8142-mtp→ OS), and its description says it covers this PR. If #55 merges first, this one can be closed.Not run through U-Boot on a J815 or J704 yet: aura boots Linux directly on the J815. On the J815, Linux's trackpad and keyboard work from iBoot's running MTP, the state this change preserves. Rebased onto
aurora-wip5445237;apple_mtp_kbd.obuilds withapple_m1_defconfig.