Repository navigation
drm/bridge: tc358762: Set pre_enabled in pre_enable - #7799
Merged
pelwell merged 1 commit intoNov 26, 2026
Merged
Conversation
Commit 645dde2 ("drm/bridge: tc358762: revert move ops to enable") moved tc358762_init() from tc358762_enable() back into tc358762_pre_enable() and dropped the "ctx->pre_enabled = true" assignment that ended the old pre_enable. Mainline still has it. pre_enabled now stays false, so tc358762_post_disable() always returns early: the vddc regulator is enabled on every pre_enable but never disabled, and the reset GPIO is never asserted again. Unbinding the driver while the display is enabled then warns in _regulator_put(): WARNING: ... at drivers/regulator/core.c:2460 _regulator_put+0x58/0x68 ... devm_regulator_release+0x1c/0x30 ... tc358762_driver_exit+0x18/0x38a0 [tc358762] Set pre_enabled again at the end of tc358762_pre_enable(). Fixes: 645dde2 ("drm/bridge: tc358762: revert move ops to enable") Signed-off-by: Henry Zhang <henryzhang62@gmail.com>
6by9
approved these changes
Nov 26, 2026
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.
Commit 645dde2 ("drm/bridge: tc358762: revert move ops to enable") moved
tc358762_init()back intotc358762_pre_enable()and dropped thectx->pre_enabled = trueassignment that ended the old pre_enable. Mainline v6.18 still has it.With
pre_enabledalways false,tc358762_post_disable()returns early every time:vddcis never disabled and the reset GPIO is never asserted again. Unbinding the driver with the display enabled warns:This patch sets
pre_enabledagain at the end oftc358762_pre_enable().Testing
Raspberry Pi 5, Raspberry Pi 7" Touch Display (v1) on DSI0, 6.18.50-1+rpt1 (built from cff533a, whose tc358762.c is identical to the current rpi-6.18.y one). The patched driver was built out of tree from this file and loaded with insmod. drm-rp1-dsi had #7772 applied, which is needed to re-attach after an unbind.
Each cycle: stop lightdm,
rmmod tc358762 panel_simple, load both again, start lightdm, then check dmesg, the bind, the DSI connector and the desktop._regulator_putwarning on unload, both times tried.Not tested: other tc358762 users, and suspend/resume.
Prepared with AI assistance (Claude); I reviewed and tested the change.