Skip to content

usb: typec: tipd: J714s: drop the macOS sleep and cable switches - #2622

Merged
DjDeveloperr merged 1 commit into
integration/aurorafrom
djdev/m5-j714s-tipd-macos-no-switches
Nov 20, 2026
Merged

DjDeveloperr merged 1 commit into
integration/aurorafrom
djdev/m5-j714s-tipd-macos-no-switches

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Follow-up to #2597, #2598 and #2601, for the project rule that merged code picks its behaviour itself, with no runtime switch.

What changes

Testing: with all three parameters at their defaults (the behaviour this PR makes unconditional), the M5 gates passed: 8 of 8 deep sleeps on the pre-review heads and 5 of 5 on merged tip d1d26ab, each a logind sleep, most entered 40 s after a Dell-port replug, with 0 hangs.

🤖 Generated with Claude Code

The J714s port controllers' macOS sleep entry and wake (sn201202x),
their USB-wake arm after the PHYs' stop (sn201202x) and the SSPS/USBw
at a cable change (cd321x) each came with a module parameter that
defaulted to the macOS behaviour and could turn it off at run time:
sn201202x.macos_entry, sn201202x.macos_usbw and
tps6598x_core.macos_attach. Those were A/B switches for testing. The
macOS behaviour is what these controllers get, so the parameters go
and the driver takes the macOS path unconditionally on the J714s,
under the same conditions as before (a firmware sleep of a polled
SN201202x with apple,sleep-ssps and no apple,usb-remote-wake, from a
port last known dry or mitigated, for the entry; that entry plus a
connector and a partner for the USB-wake arm; the USB-C ports'
controllers, while running, for the cable change). Nothing changes
for the defaults.

Signed-off-by: Diljit Singh <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@DjDeveloperr
DjDeveloperr force-pushed the djdev/m5-j714s-tipd-macos-no-switches branch from f6c1461 to b3a1ab2 Compare November 20, 2026 23:47
@RyanTheTide

Copy link
Copy Markdown
Contributor

Dropping the three switches is right, and the paths keep the same conditions, so default behaviour is unchanged. The diff matches the description: every READ_ONCE() of a removed parameter goes, and nothing else changes.

One follow-up: with the switches gone, of_machine_is_compatible("apple,j714s") (sn201202x_j714s() in spmi.c and cd321x_macos_cable_port() in core.c) is now the only thing that selects the macOS sleep entry, USBw and cable-change sequences. apple,sleep-ssps is also set on the J716c, J700 and J813/J815 ports, so it can't simply replace the board check. But a property on the J714s port controllers, or on their connectors, describing this sequence would let the J714c/J716c opt in from their device trees once they are traced, with no driver change. That fits better in a later PR than in this one.

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr
DjDeveloperr merged commit 024cec8 into integration/aurora Nov 20, 2026
1 check passed
@RyanTheTide
RyanTheTide deleted the djdev/m5-j714s-tipd-macos-no-switches branch November 27, 2026 13:21
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.

2 participants