Skip to content

Conversation

@ngphibang
Copy link
Contributor

@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
Contributor 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
Contributor 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
@ngphibang ngphibang deleted the csi_misc_fix branch June 24, 2025 15:55
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