-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Fix grabbing lock from atomic context in i2c driver #780
Conversation
Would be nice if first line of commit message was more descriptive. |
Apologies for the commit message. I was so focused not to mess up the commit that the message slipped. Anyway, you are right about the whitespace changes. I will separate the commit in 3 parts - one for cosmetics and 2 for each of the issues (timeouts and clk_get_rate). Now the main problem is that I'm a complete rookie when it comes to git (I usually download the zip from github) so squashing the commits will keep me busy for a few evenings. I guess it's time I figure git out. |
Basically just concentrate on making your local patch-2 branch look correct. |
2 main changes: - check for timeouts in the bcm2708_bsc_setup function as indicated by this comment: /* poll for transfer start bit (should only take 1-20 polls) */ This implies that the setup function can now fail so account for this everywhere it's called - Removed the clk_get_rate call from inside the setup function as it locks a mutex and that's not ok since we call it from under a spin lock. removed dead code and update comment fixed typo in comment
Done. Updated the comment, removed commented code, fixed a typo and squashed the commits. |
Fix grabbing lock from atomic context in i2c driver
See: raspberrypi/linux#782 kernel: i2c: Fix grabbing lock from atomic context in i2c driver See: raspberrypi/linux#780 kernel: Add Add ENC28J60 SPI ethernet module See: raspberrypi/linux#795
See: raspberrypi/linux#782 kernel: i2c: Fix grabbing lock from atomic context in i2c driver See: raspberrypi/linux#780 kernel: Add Add ENC28J60 SPI ethernet module See: raspberrypi/linux#795
rust: add `StaticRef`
2 main changes:
/* poll for transfer start bit (should only take 1-20 polls) */
This implies that the setup function can now fail so account for this everywhere it's called