Skip to content

fix(jolla): load tcpci_mt6720 at boot from modules-load.d - #109

Open
patrickjquinn wants to merge 1 commit into
mainfrom
fix/jolla-tcpc-modules-load
Open

patrickjquinn wants to merge 1 commit into
mainfrom
fix/jolla-tcpc-modules-load

Conversation

@patrickjquinn

Copy link
Copy Markdown
Owner

Jolla e2e 2026-11-28, P1 "USB-C: tcpci_mt6720 did not load at boot (boot of 13:34)".

What the logs show. The report's "depmod race" does not hold: on that boot jp2601-modules-match's depmod finished writing modules.* at 13:34:40.500, the swap was logged at 40.513, udev coldplug started at 40.550 and systemd-udevd at 40.554, and the unit is ordered Before= udevd/udev-trigger/modules-load. The tcpc device was created in the initramfs (13:34:39), which is the "1 s before depmod" the report saw. The kernel log has no tcpci/tcpm message at all (no Unknown symbol, no probe error): the module was never loaded. It loaded on every boot since (14:54, 16:09, 16:17, 16:23, 17:10, 18:02). Root cause of the missed load is open; next counted boot that swaps module trees should carry udev.log_level=debug to see the tcpc add event.

Fix. List tcpci_mt6720 in modules-load.d (device-jolla-jp2601-marathon r26), as the camera and Deckard modules already are, so it loads every boot regardless of the udev event.

On the phone: with tcpci_mt6720 removed, systemctl restart systemd-modules-load logged "Inserted module 'tcpci_mt6720'", /sys/class/typec/port0 came back as device/sink, charger online.

Conflicts with #106 on pkgrel (both 25 -> 26); whichever lands second takes 27.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BrjN1gf1Fu2w5MqXBmEowh

On one boot of the 2026-11-28 e2e run tcpci_mt6720 never loaded, so the
USB-C port had no role or power-delivery management (/sys/class/typec
empty) although its device and module alias were there. The kernel log
has no error for it: udev's coldplug simply did not load it, and the
module-tree swap was finished before coldplug began, so the cause is
still open.

List it in modules-load.d, as the camera and Deckard modules are, so
systemd-modules-load loads it on every boot. Tested on the Jolla: with
the module removed, restarting systemd-modules-load inserted it and
port0 came back as device/sink with the charger online.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant