fdt2, panel: Add ability generate panels from soc node#42
Open
barni2000 wants to merge 1 commit intomsm8916-mainline:masterfrom
Open
fdt2, panel: Add ability generate panels from soc node#42barni2000 wants to merge 1 commit intomsm8916-mainline:masterfrom
barni2000 wants to merge 1 commit intomsm8916-mainline:masterfrom
Conversation
There are some soc (msm8996) where panel related information placed under /soc. Signed-off-by: Barnabás Czémán <trabarni@gmail.com>
Contributor
|
Any reason this is still marked as Draft? |
stephan-gh
requested changes
Jun 30, 2025
| [FDT_ERR_NOTFOUND]) | ||
| if offset == -FDT_ERR_NOTFOUND: | ||
| return None | ||
| yield offset |
Member
There was a problem hiding this comment.
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"): |
Member
There was a problem hiding this comment.
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?
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.
There are some soc (msm8996) where panel related information placed under /soc.
Related issue: #41