Repository navigation
usb: typec: tipd: sleep: drop the S3-refusal switch and the SSPS limit tunable - #2628
Merged
DjDeveloperr merged 1 commit intoNov 21, 2026
Merged
Conversation
…t tunable Two module parameters of the sleep's port-controller handling (the T6050 boards and the J813/J815) were runtime switches: - sleep_s3_refuse (default on): a controller that does not take system power state S3 refuses the sleep, or, switched off, lets it go on. The one sleep that went on after such a failure ended in a reset at the commit. The refusal is now unconditional. - sleep_ssps_ms (default 1000, clamped to 1000-5000): the limit of an SN201202x's system power state command under the sleep's rules. The wait already ends on the controller's own signal: the command register read at intervals until the command has ended, then the power state read back, within the first few reads (7-12 ms in macOS's traces of the J714s). The limit is only the fallback, so it becomes a constant at the old default, 1000 ms, this driver's default command limit. The defaults' behaviour is unchanged; the refusal's comment moves to where it happens, and the J813/J815 sleep DTS comment that named the parameter names cd321x_prepare() instead. Signed-off-by: Diljit Singh <hey@djdev.me> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DjDeveloperr
force-pushed
the
djdev/m5-t6050-tipd-sleep-no-switches
branch
from
November 21, 2026 00:05
70fd745 to
e253498
Compare
Contributor
|
Looks right: both paths keep their defaults (refuse on a failed S3 under the sleep's rules, a 1000 ms limit), and the refusal's comment now sits where the refusal happens. Nit: the new comment calls 1000 ms "this driver's default command limit", but the same Assisted-by: LLM (Claude:Opus 5.5) |
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.
Follow-up to #2622 for the project rule that merged code picks its behaviour itself, with no runtime switch. This covers two older tipd parameters, from 475b7ad.
What changes
tps6598x_core.sleep_s3_refuse(default on) is removed. A port controller that doesn't take S3 under the sleep's rules now always refuses the sleep. The one sleep that went on after such a failure ended in a reset at the commit.tps6598x_core.sleep_ssps_ms(default 1000, clamped 1000-5000) is removed.Testing: the M5 gates ran at these defaults: 8 of 8 deep sleeps on the pre-review heads of #2597-#2601, and 5 of 5 on d1d26ab. No S3 was refused, and every SSPS ended within its first reads.
🤖 Generated with Claude Code