-
Notifications
You must be signed in to change notification settings - Fork 7.6k
drivers: stepper: Fix stepper callbacks when using work_q #88835
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: stepper: Fix stepper callbacks when using work_q #88835
Conversation
tests/drivers/stepper/stepper_api/boards/native_sim_adi_tmc2209_work_q.overlay
Outdated
Show resolved
Hide resolved
tests/drivers/stepper/stepper_api/boards/native_sim_allegro_a4979_work_q.overlay
Outdated
Show resolved
Hide resolved
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.
Thanks for this Patch :)
can you run this script locally in order to fix compliance checks ./scripts/ci/check_compliance.py
.
dfeb19e
to
5d6dced
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.
This should be seperated into two commits.
How? Unit test and fix? |
Yep, the order would have to be fix and unit-test. Making 130 as a Kconfig could be added to the second commit as well :) |
Fix issue where stepper callbacks were not being called when using work_q. This was due to the steps being counted down before the work_q was rescheduled. Signed-off-by: Josselin Bunt <josselin@sensible.health>
This commit adds unit tests for the stepper API using work_q scheduler. Signed-off-by: Josselin Bunt <josselin@sensible.health>
5d6dced
to
1893718
Compare
Hi @jbr7rr! To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge. Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁 |
deleting two test-cases from drv8424 test-suite since these test-cases are now present in stepper-api since zephyrproject-rtos#88835 Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
deleting two test-cases from drv8424 test-suite since these test-cases are now present in stepper-api since #88835 Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
Fix issue where stepper callbacks were not being called when using work_q. This was due to the steps being counted down before the work_q was rescheduled.
Added additional unit tests to stepper_api to verify the fix. Needed to increase the tolerance to 30% because of the timing of the work_q.
Fixes: #88821