-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: video: dcmi: fix DMA channel configuration #92018
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
drivers: video: dcmi: fix DMA channel configuration #92018
Conversation
|
I do not know the internals of the STM32 HAL enough to tell if this is the right approach. |
| hdma.Init.Mode = DMA_CIRCULAR; | ||
| hdma.Init.Priority = DMA_PRIORITY_HIGH; | ||
| #if defined(CONFIG_SOC_SERIES_STM32F7X) | ||
| #if defined(CONFIG_SOC_SERIES_STM32F7X) || defined(CONFIG_SOC_SERIES_STM32H7X) |
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 think the filtering should be done by DMA compatible instead of series.
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.
Yes, it sounds like this would avoid forgetting platforms accidentally.
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.
Is it suitable to keep the current bugfix and follow-up with this issue to avoid a change just before the release?
Commit 64149e4 added an "#if defined()" for configuring DMA channels differently depending on SOC family of the STM32 HAL, but did not include the STM32H7 family in the same group as STM32F7. Fix it by adding the STM32H7 in the same #ifdef filter. Fixes zephyrproject-rtos#92015 Signed-off-by: Josuah Demangeon <me@josuah.net>
|
|
Force-push:
|



Commit 64149e4 added an
#if defined()for configuring DMA channels differently depending on SOC family of the STM32 HAL, but did not include the STM32H7 family in the same group as STM32F7. Fix it by adding the STM32H7 in the same#ifdeffilter.Fixes #92015