-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add support for SPI transfers on RM3100 and fix DT yaml typo #95882
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
Add support for SPI transfers on RM3100 and fix DT yaml typo #95882
Conversation
2895c31
to
04250e2
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 fine to me with some minor feedback
04250e2
to
65f5338
Compare
5861d72
to
76d51cd
Compare
drivers/sensor/pni/rm3100/rm3100.c
Outdated
LOG_ERR("Failed to trigger POLL"); | ||
rtio_iodev_sqe_err(iodev_sqe, err); | ||
} else { | ||
rm3100_stream_submit(dev, iodev_sqe); |
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 feel like we shouldn't be calling rm3100_stream_submit()
unless it is indeed streaming (multi-shot events).
I suspect if the intend is to manually poll each sample to better control the ODR pace, then you don't expect to use the streaming-mode, yeah?
If that's the case, I suggest making them mutually exclusive and then handle the GPIO config-firing on a file separate from rm3100_stream.c
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.
Thats fine, the logic will be basically a direct copy paste of what is used in rm3100_stream.c which is why I chose to reuse the function.
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.
FWIW - The first two patches look good and straightforward to me: If you want to file a standalone PR to address the GPIO-driven one-shot reads, that's good with me as well.
Sure |
76d51cd
to
9e98103
Compare
9e98103
to
47624ec
Compare
Add support for SPI Signed-off-by: Anthony Williams <[email protected]>
Rename RM33100 to RM3100 in yaml comment to align with rm3100.h defines. Signed-off-by: Anthony Williams <[email protected]>
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
Add support for SPI transfers using RTIO and fix minor typo in DT yaml to match rm3100.h defs.