Skip to content

Commit dee78f4

Browse files
committed
panel: Chain in post-panel-on-command
This is a perfect contended for the `.prepare()` -> `.enable()` split; on Sony panels the unblank command is typically in `post-panel-on` to make it happen after the panel is prepared, the bridge is on, and pixel data is flowing. Without this pretty much all our panels are generated with a driver that never unblanks the panel.
1 parent 5c82e61 commit dee78f4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

driver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ def generate_commands(p: Panel, options: Options, cmd_name: str) -> str:
136136
s += '\n'
137137
block = '{' in c.generated
138138

139+
if cmd_name == 'on' and 'panel_power_on' in cmd.generated:
140+
s += '/* FIXME: Call this in .enable() */\n'
141+
139142
s += c.generated + '\n'
140143
if c.wait and c.wait > options.ignore_wait:
141144
s += f'\t{msleep(c.wait)};\n'

panel.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ def __init__(self, fdt: Fdt2, node: int, cmd: str) -> None:
156156
if init:
157157
itr = itertools.chain(init, itr)
158158

159+
on = fdt.getprop_or_none(node, 'qcom,mdss-dsi-post-panel-on-command')
160+
if on:
161+
itr = itertools.chain(itr, on)
162+
159163
on = fdt.getprop_or_none(node, 'lge,display-on-cmds')
160164
if on:
161165
itr = itertools.chain(itr, on)

0 commit comments

Comments
 (0)