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

Lesson 11: Interrupt handling #121

Open
wants to merge 6 commits into
base: Vadym.Mishchuk
Choose a base branch
from

Conversation

vad32m
Copy link

@vad32m vad32m commented Jan 13, 2019

This PR contains commits, that should make MPU6050 driver more interrupt-driven. The most recent working commit is 346008f. It retreives GPIO from device tree, configures it and receives corresponding interrupt. However, it has one issue: some interrupts are missing sometimes (see log analyzer screenshot, IRQ and SCA/SDL lines).
screenshot from 2019-01-13 16-01-31
Commit 5fdef10 is attempt to get rid of GPIO configuration code inside driver and move it to device tree. It doesn't work due to errors while driver probing:

[ 33.882798] mpu6050: loading out-of-tree module taints kernel.
[ 33.883546] irq: type mismatch, failed to map hwirq-38 for /soc/interrupt-controller@01c81000!

Any comments appreciated.

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.

1 participant