-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
display: stm32: ltdc: minor fixes #75050
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will need to update a migration guide to change the DT binding property name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would squash the commit updating the migration guide into the first commit as there is no reason to keep it separate IMO, but I will make this non-blocking (and doing the update shouldn't dismiss existing reviews anyway)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM besides the following:
display-controller is ambiguous. change it to panel-controller. Update LTDC driver & migration guide. Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
Blanking On/Off calls should not return 0 when there is no panel controller to forward them to, instead they should return ENOSYS to signal to the application that they were not actually executed. Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
68bec5e
to
f8b5730
Compare
@mathieuchopstm, @ajarmouni-st, The Lines 142 to 153 in 9b9d455
No need to add extra device |
@GeorgeCGV The idea here is to isolate the |
@ajarmouni-st if the goal is to allow people to control blanking manually in the app, then the If the goal is to not allow that, then it would be better to fail early by replacing But ok. |
That would not be desirable because we don't know if the app will actually call a display API function that needs to be forwarded to the panel controller. |
@GeorgeCGV I am not sure I understand what you mean by this. |
Some drivers call blanking on upon init, some don't. Same goes for blanking off.
If LTDC's blanking control is intended to be optional, then it is possible to define blanking differently depending on the |
@GeorgeCGV I don't know if this is relevant or not, but |
@decsny Please take another look, thanks! |
@danieldegrasse could you help review this, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- display-controller = <&ili9341>;
+ panel-controller = <&ili9341>;
Whether display-controller is ambiguous or not, it is not a bug.
@ajarmouni-st But |
Renames the
display-controller
property ofst,stm32-ltdc
topanel-controller
.Clarifies why NULL checks are necessary for panel controller device inside blanking_on/off functions in LTDC driver,
& fixes return value when the panel controller's phandle is not passed to LTDC in devicetree.
Addresses #68105 (comment)