From 41e527fa2b72c9f4b5ad6a9971a9c73d6966381b Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Wed, 2 Dec 2026 08:20:23 -0500 Subject: [PATCH] input: apple_mtp_kbd: leave the T6020 MTP to the OS On T6020 (M2 Pro, J414s) running the 27.2 system firmware stub, U-Boot's MTP keyboard probe starts the MTP RTKit helper and quiesces it before booting the OS. The 27.2 MTP firmware does not survive a second start: Linux's RTKit init crashes immediately (PC=0x10359b4, empty crashlog version) and the internal keyboard and trackpad never appear. Exclude apple,t6020 in apple_mtp_kbd_probe() alongside apple,j813 and apple,t6050 so U-Boot leaves the helper and its FIFOs untouched and Linux owns the first MTP boot. Signed-off-by: DjDeveloperr --- drivers/input/apple_mtp_kbd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/input/apple_mtp_kbd.c b/drivers/input/apple_mtp_kbd.c index 26af33a6642..32ce9c1b8a6 100644 --- a/drivers/input/apple_mtp_kbd.c +++ b/drivers/input/apple_mtp_kbd.c @@ -460,11 +460,14 @@ static int apple_mtp_kbd_probe(struct udevice *dev) /* * An MTP handed to the OS halted (J604, J715) and the J813 MTP cannot * be restarted after U-Boot shuts them down, and Linux wakes the T6050 - * MTP from the state iBoot left it in. J713 retains its running helper + * MTP from the state iBoot left it in. T6020 (M2 Pro) on the 27.2 stub + * hits the same restart crash (PC=0x10359b4) if U-Boot starts and stops + * the helper, so leave it to the OS. J713 retains its running helper * and replays discovery packets to Linux at OS handoff. */ if (apple_mtp_halted_for_os() || of_machine_is_compatible("apple,j813") || + of_machine_is_compatible("apple,t6020") || of_machine_is_compatible("apple,t6050")) return -ENODEV; priv->j713 = of_machine_is_compatible("apple,j713") ||