-
Notifications
You must be signed in to change notification settings - Fork 1.5k
drivers/sensors: sensor bug fix - part 1 #17824
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
base: master
Are you sure you want to change the base?
Conversation
dd60fe3 to
6d1bebc
Compare
The logic for obtaining the info and configuring the user buffer have been optimized. Signed-off-by: dongjiuzhu1 <[email protected]>
Fixes the issue of cross-core IPC being triggered when using O_DIRECT in non-cross-core scenarios. Signed-off-by: likun17 <[email protected]>
…rmation. When the local core is a virtual sensor, attempt to retrieve information from a remote core. Signed-off-by: likun17 <[email protected]>
6d1bebc to
d510572
Compare
jerpelea
left a comment
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.
please add "drivers/sensors:" in front of commit title
| } | ||
|
|
||
| if (lower->ops->open) | ||
| if ((filep->f_oflags & O_DIRECT) == 0 && lower->ops->open) |
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.
Please include comment explaining the idea. Why do you need to check if O_DIRECT flag is set?
| } | ||
|
|
||
| if ((filep->f_oflags & O_DIRECT) == 0) | ||
| if (filep->f_oflags & O_RDOK) |
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.
Also it is good to have a comment before this block
|
wait for #17837 and apache/nuttx-apps#3312 |
linguini1
left a comment
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.
Ideally this could be three separate PRs since the commits seem unrelated.
We have conducted tests on the following platforms
Can you please provide more information about your testing? What did you test on the platforms, how do you know the behaviour is correct, etc.
Summary
Impact
Cross-core direct connection and cross-core information retrieval
Testing
We have conducted tests on the following platforms:
Simulator - single core:pass
BES Platform - multi-core:pass;