-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
drivers: i2c: stm32: Disable suspend to idle during the transaction #62988
drivers: i2c: stm32: Disable suspend to idle during the transaction #62988
Conversation
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 think the proposal is correct, but highlights the complexity of PM subsystem.
I'd like PM subsystem maintainer to comment on this case.
@ceolin |
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
b8f98cc
to
6b86ccc
Compare
ab22637
to
6b86ccc
Compare
@coran21 Please rebase |
@erwango I wrote you a couple messages asking for help:
I would really appreciate any help with this. |
If there is only one commit, what you can do is:
|
Suspend-to-idle stops I2C module clocks, which must remain active during transaction Signed-off-by: Petr Hlineny <development@hlineny.cz>
6b86ccc
to
bae2621
Compare
@erwango That was exactly what I was looking for, than you! |
Doesn't fix issue for STM32F1X. *not really work, but reduce reproducibility a lot :-/ |
Suspend-to-idle stops I2C module clocks, which must remain active during the transaction.
Waiting for semaphore inside
stm32_i2c_msg_write
andstm32_i2c_msg_read
triggers suspend to idle when pm is enabled, which results in disabled clocks, timeout, and error.