Skip to content

Conversation

@barni2000
Copy link

@barni2000 barni2000 commented Mar 18, 2024

There are some soc (msm8996) where panel related information placed under /soc.

Related issue: #41

There are some soc (msm8996) where panel related information placed
under /soc.

Signed-off-by: Barnabás Czémán <[email protected]>
@z3ntu
Copy link
Contributor

z3ntu commented May 23, 2025

Any reason this is still marked as Draft?

@barni2000 barni2000 marked this pull request as ready for review May 24, 2025 18:48
[FDT_ERR_NOTFOUND])
if offset == -FDT_ERR_NOTFOUND:
return None
yield offset
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using yield for a single element is a bit odd, this should return simply the index

for sub in fdt.subnodes(mdp):
yield sub

for mdp in fdt.find_by_path("/soc"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And then drop the loop here, it doesn't actually loop over anything.

But I'm a bit skeptical about treating all devices below /soc as panels. Is there anything interesting inside the node or so that we could match on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants