Repository navigation
fix(jolla): load tcpci_mt6720 at boot from modules-load.d - #109
Open
patrickjquinn wants to merge 1 commit into
Open
patrickjquinn wants to merge 1 commit into
patrickjquinn wants to merge 1 commit into
Conversation
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.
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.
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=debugto 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-loadlogged "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