Skip to content

usb: typec: tipd: sn201202x: skip liquid detection where the port has none - #1685

Merged
DjDeveloperr merged 2 commits into
integration/aurorafrom
m5-parity3/sn201202x-no-ldcm
Nov 12, 2026
Merged

DjDeveloperr merged 2 commits into
integration/aurorafrom
m5-parity3/sn201202x-no-ldcm

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Every SN201202x (ACE3) controller gets tipd's LDCM liquid-detection and mitigation commands: an LDCM command at probe, and again around system sleep. That includes the MagSafe 3 port's controller, which has no such feature.

  • ADT: the M5 Pro (J714sAP) lists features-supported = <1 2 3> for the USB-C ports' controllers (hpm0, hpm1, hpm2) and <3> for the MagSafe controller (hpm5).
  • macOS: on the same machine (27.0, AppleHPM), the USB-C ports report FeaturesSupported and FeaturesEnabled ("TRM", "LDCM", "Power In"); the MagSafe 3 port reports ("Power In") for both.

This adds a boolean apple,no-liquid-detection to the binding. The driver then:

  • installs the contaminant ops only for a controller without the property;
  • makes an LDCM update a no-op without them, so the probe, prepare/complete and sleep-event paths send such a controller no LDCM command;
  • registers its Type-C port without contaminant detection, so it has no contaminant attribute.

No in-tree DT sets the property yet, so nothing changes on any board until a board marks a controller. The J714s MagSafe node that uses it is the stacked PR.

Tested on the M5 Pro (J714s), 7.3.0-m5-intg4

This build of sn201202x.ko (only this change on intg4's tipd) was installed in updates/ over SSH, then removed afterwards. The stock module and its module index were checked back.

  • Default device tree (no controller has the property): both USB-C controllers (1-0a hpm1, 2-0c hpm2) bind and keep their contaminant attribute (none), as with the stock module.
  • With the stacked J714s node (hpm5 marked apple,no-liquid-detection):
    • The MagSafe controller 1-08 binds. Its Type-C port is a USB PD sink with no contaminant attribute, and its power supply is online.
    • Both USB-C ports still have contaminant: none.
    • No LDCM or liquid-detection errors are logged.
    • The TB5 dock with its USB4 NVMe and the left-front DisplayPort monitor stay up.

🤖 Generated with Claude Code

The MagSafe 3 port's PD controller has no liquid detection and
corrosion mitigation (LDCM). The ADT lists its features as <3>
("Power In"), where the USB-C ports' controllers have <1 2 3>
("TRM", "LDCM", "Power In"). Describe that with a boolean property.

Signed-off-by: Diljit Singh <[email protected]>
… none

Every SN201202x gets the LDCM liquid-detection and mitigation commands,
including the MagSafe 3 port's controller, which has no such feature:
macOS enables only "Power In" on that port.

Install the contaminant ops only for a controller without
apple,no-liquid-detection, and make an LDCM update a no-op without
them, so the probe, sleep and resume paths send such a controller no
LDCM command. Controllers without the property, every USB-C port's,
are unchanged.

Signed-off-by: Diljit Singh <[email protected]>
@DjDeveloperr
DjDeveloperr merged commit 78ea426 into integration/aurora Nov 12, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the m5-parity3/sn201202x-no-ldcm branch November 16, 2026 05:10
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