Skip to content

Some misc fixes on CSI driver #71860

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

Merged
merged 4 commits into from
May 10, 2024
Merged

Conversation

ngphibang
Copy link
Collaborator

@ngphibang ngphibang commented Apr 24, 2024

This PR adds some misc fixes for CSI driver. It is splitted from #69810 to ease the review process as required by @loicpoulain.

It already got reviewed by Daniel Degrasse.

decsny
decsny previously approved these changes Apr 24, 2024
@dleach02
Copy link
Member

dleach02 commented May 2, 2024

@ngphibang please address the CI problem

@ngphibang
Copy link
Collaborator Author

@dleach02 The CI problem is not due to my changes. In fact, it is because the "Install Packages" step failed.

@DerekSnell DerekSnell removed their request for review May 3, 2024 11:08
ngphibang added 2 commits May 6, 2024 17:18
The HAS_MCUX_CSI (as well as all the HAS_MCUX_XXX) config was obsolete
and has been replaced by the DT_HAS_NXP_IMX_CSI_ENABLED (i.e.
DT_HAS_XXX_ENABLED). Drop it as well as all the dependencies on it.

Signed-off-by: Phi Bang Nguyen <[email protected]>
Run clang format before making any changes

Signed-off-by: Phi Bang Nguyen <[email protected]>
ngphibang added 2 commits May 6, 2024 17:32
The CSI should always propagate the get_fmt request down to the sensor.
It should not return a format by it own unless it contains a test
pattern generator inside it.

The problem with the legacy code is that this code snippet is never
reached if the sensor could return a format. In case the sensor failed
to return a format, these codes are reached but the returned format
makes no sense and its value was not initialized.

Signed-off-by: Phi Bang Nguyen <[email protected]>
The pixel format config is not used in the low level driver. Drop it.

Signed-off-by: Phi Bang Nguyen <[email protected]>
@ngphibang
Copy link
Collaborator Author

@danieldegrasse @loicpoulain : Thanks for the comments. Is it ok for you now ?

@nashif nashif merged commit 249159f into zephyrproject-rtos:main May 10, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Video Video subsystem platform: NXP Drivers NXP Semiconductors, drivers platform: NXP NXP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants