Repository navigation
usb: typec: tipd: J714s: drop the macOS sleep and cable switches - #2622
Conversation
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]>
f6c1461 to
b3a1ab2
Compare
|
Dropping the three switches is right, and the paths keep the same conditions, so default behaviour is unchanged. The diff matches the description: every One follow-up: with the switches gone, Assisted-by: LLM (Claude:Opus 5.5) |
Follow-up to #2597, #2598 and #2601, for the project rule that merged code picks its behaviour itself, with no runtime switch.
What changes
sn201202x.macos_entry(usb: typec: tipd: sn201202x: J714s: enter and leave a sleep as macOS does #2597),sn201202x.macos_usbw(usb: typec: tipd: sn201202x: J714s: arm USB wake after the PHYs' stop, as macOS does #2601) andtps6598x_core.macos_attach(usb: typec: tipd: cd321x: J714s: SSPS and USBw at a cable change, as macOS does #2598) are removed. They defaulted on and were A/B switches for testing.apple,sleep-sspsand noapple,usb-remote-wake, from a port last known dry or mitigated;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