-
Notifications
You must be signed in to change notification settings - Fork 9
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: dma: siwx917: Add DMA driver #65
drivers: dma: siwx917: Add DMA driver #65
Conversation
fb76625
to
abf2150
Compare
Hello @smalae, Could you configure git with your real name[1]:
(You can use In addition, could you follow the Zephyr Pull Request[2] guidelines[3]. [1] https://docs.zephyrproject.org/latest/contribute/guidelines.html#git-setup |
The introduction letter of your PR properly identify three steps to introduce this driver (driver by itself, DT configuration and tests). I suggest to split your commits to reflect these steps. Thus, the review you be more efficient. Could you also enable your tests in CI ( |
Sure @jerome-pouiller |
Sure, I will split into multiple commits |
tests/drivers/dma/chan_blen_transfer/boards/siwx917_rb4338a.overlay
Outdated
Show resolved
Hide resolved
65ce8e1
to
775f722
Compare
347269f
to
5a0c8e4
Compare
@smalae could you explain a bit what you mean by this part related to the new test case you're adding:
Even though it doesn't need to be upstream and can reside downstream, is there a good reason to do that? If it's generic, i.e. can be applied to any DMA driver, then I think upstream is the right place for it. Keeping code purely downstream always comes with a maintenance overhead, so it's good to avoid that whenever possible. |
@jhedberg agreed that it will cause the maintenance overhead. But this test case is almost similar to the existing test case with a few additional tests added (different data sizes and transfer lengths). I feel adding this test case upstream may not be necessary. Is it okay to remove this test case from the PR and retain it in my fork? Anyhow, the basic DMA test chan_blen_transfer can be run by CI. @jerome-pouiller, your thoughts? |
efc52f3
to
869a6e4
Compare
212f9f3
to
5b7ff89
Compare
Thank you for your feedback. I see your point about considering whether something is 'useful/beneficial' rather than just 'necessary.' However, in this case, my concern was more about the immediate scope and focus of the current implementation. While I agree that upstream changes can be beneficial when they address broader use cases, I believe that the proposed change may not fit well into the current scope without introducing unnecessary complexity or duplication. I'll revisit the idea with this in mind and ensure we stay aligned with the overall goals for simplicity and maintainability. For now, I am only going with the existing UDMA test case in Zephyr. |
5b7ff89
to
e3105fb
Compare
4e002f1
to
c94c114
Compare
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.
Sorry, I haven't been able spot all the issues in one go. I know it is a bit annoying. I believe this is the last round.
c94c114
to
e2d5148
Compare
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.
Still this small issue with dma_rom_buff
and we will be fine.
b0f9e86
to
d546e47
Compare
d546e47
to
243e5a1
Compare
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.
Looks good. @smalae can you update the revision of hal_silabs in west.yml
, so we can merge this PR.
243e5a1
to
0263c8b
Compare
Implement DMA driver for siwx917 using UDMA peripheral. Following Zephyr DMA APIs are supported as part of this implementation, 1. dma_api_config 2. dma_api_reload 3. dma_api_start 4. dma_api_stop 5. dma_api_get_status Signed-off-by: Sai Santhosh Malae <[email protected]>
Addition of DMA driver for Si91x