Repository navigation
fix(kernel): let the gamepad rail drop in sleep on the Odin 2 Portal - #98
Open
TheWeaklessOne wants to merge 1 commit into
Open
TheWeaklessOne wants to merge 1 commit into
TheWeaklessOne wants to merge 1 commit into
Conversation
The stick-LED controllers kept vdd_mcu_3v3 on through s2idle, so the gamepad MCU stayed powered even after rsinput let go of it. Release the supply in htr3212 suspend and take it back on resume. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
On the Odin 2 Portal the gamepad MCU stayed powered through system sleep. The two HTR3212 stick-LED controllers share
vdd_mcu_3v3with it, and while 0029 makes rsinput drop its vote in suspend, each controller holds its own vote for as long as it is bound. The rail never reached zero users, so it stayed on with the MCU held in reset behind it.Change
Kernel patch (0075 for sm8550, 0088 for sm8550-74, same content):
htr3212_suspend()releases the supply after pulling SDB low, andhtr3212_resume()takes it back before raising SDB. Resume already re-initialises the chip and restores every LED (0071), so losing the register state costs nothing.Tested on an Odin 2 Portal (7.2.8, sm8550 set plus this patch)
vdd_mcu_3v3disabled at suspend and enabled again at resume. Before the patch it stayed enabled with three users.Not tested: the sm8550-74 copy was not built or run on 7.4, and I have no Retroid or Thor to check those boards, where the controllers may sit on a rail with different consumers.
🤖 Generated with Claude Code