Skip to content
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

Patch IIO HID initialization #3200

Merged
merged 4 commits into from
Feb 4, 2019
Merged

Conversation

ev-mp
Copy link
Collaborator

@ev-mp ev-mp commented Feb 3, 2019

At enumeration stage Linux HID IIO async invocation may cause improper initialization order, resulting in Accelerometer's trigger driver mapping missing.
The patch establishes the required trigger mapping, thus allowing the accel_3d driver function properly
Addressing #2965.
Tracked on: dso-11745

ev-mp and others added 3 commits February 3, 2019 09:58
Use asynchronous method to overcome powerup-imposed latencies in the driver

Change-Id: Iecb2f7edfd261428a3b0572d628657d98fb24a58
Signed-off-by: Evgeni Raikhel <evgeni.raikhel@intel.com>
Add note regarding sysfs system calls in IIO context
Signed-off-by: Evgeni Raikhel <evgeni.raikhel@intel.com>
@ev-mp ev-mp requested a review from icarpis February 3, 2019 21:28

// Overcome Linux iio kernel driver failing to properly enumerate and map the interrupt triggers
// to the accel/gyro kernel modules
_pm_thread = std::unique_ptr<std::thread>(new std::thread([path,current_trigger](){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it is better to move the event_trigger initialization before the following attributes

input->enable(true);
set_frequency(frequency);
write_fs_arithmetic(_iio_device_path + "/buffer/length");

Signed-off-by: Evgeni Raikhel <evgeni.raikhel@intel.com>
@dorodnic dorodnic merged commit 40faf1d into IntelRealSense:development Feb 4, 2019
@ev-mp ev-mp deleted the dso-11745 branch February 11, 2019 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants