Skip to content

Commit 26e7e90

Browse files
committed
panel: Also parse lge,display-on-cmds as on-cmds
LG puts extra commands there for some stupid reason. Meh.
1 parent 304b2ee commit 26e7e90

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

panel.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,15 @@ def __init__(self, fdt: Fdt2, node: int, cmd: str) -> None:
146146
itr = iter(prop)
147147

148148
if cmd == 'on':
149-
# WHY SONY, WHY?????? Just put it in on-command...
149+
# WHY SONY/LG, WHY?????? Just put it in on-command...
150150
init = fdt.getprop_or_none(node, 'somc,mdss-dsi-init-command')
151151
if init:
152152
itr = itertools.chain(init, itr)
153153

154+
on = fdt.getprop_or_none(node, 'lge,display-on-cmds')
155+
if on:
156+
itr = itertools.chain(itr, on)
157+
154158
for dtype in itr:
155159
last, vc, ack, wait = next(itr), next(itr), next(itr), next(itr)
156160
dlen = next(itr) << 8 | next(itr)

0 commit comments

Comments
 (0)