Repository navigation
input: apple_mtp_kbd: leave J813 MTP cold for Linux - #4
Merged
Merged
Conversation
Skip the U-Boot keyboard probe on J813 before touching the helper or FIFOs. After U-Boot's RTKit shutdown, restarting the MTP coprocessor from Linux crashes the firmware while it restores its logging state (PC 0x102a73c, ESR 0x96000004), which takes the built-in keyboard and trackpad down with it. A cold start from Linux initializes STM, the keyboard and the multi-touch interface normally. The failure is timing dependent: it showed up reliably once the J813 display driver probed before MTP. With public m1n1 and the aurora-wip J813 kernel plus native display, unmodified U-Boot crashed MTP in 2 of 2 boots; with this change MTP started cleanly in all 27 boots since, and the keyboard and trackpad worked in a KDE Plasma session. Other boards keep their existing probe path. U-Boot keyboard input on J813 stays disabled until a warm MTP handoff is qualified.
This was referenced Oct 3, 2026
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.
Leave the J813 (M5) keyboard coprocessor cold for Linux.
On J813, U-Boot's MTP keyboard driver starts MTP and shuts it down again before booting the OS. Linux's later restart then crashes the MTP firmware while it restores its logging state (PC
0x102a73c), which takes the built-in keyboard and trackpad down. A cold start from Linux works. This skips the probe onapple,j813only, before touching the helper or FIFOs.The crash is timing dependent; it became reliable once the J813 display driver probed before MTP. With public m1n1 and the aurora-wip J813 kernel plus native display, unmodified U-Boot crashed MTP in 2 of 2 boots. With this change, MTP started cleanly on every boot since, and the keyboard and trackpad worked in a KDE Plasma session.
Other boards keep their probe path. U-Boot keyboard input on J813 stays off until a warm MTP handoff is qualified.
Companion PRs: aurora-silicon/linux#166 · aurora-silicon/m1n1#19 · #4