aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
diff options
context:
space:
mode:
authorChris Packham <[email protected]>2021-12-07 17:21:44 +1300
committerWolfram Sang <[email protected]>2021-12-10 22:27:30 +0100
commita74c313aca266fab0d1d1a72becbb8b7b5286b6e (patch)
tree3c41f5089c73b7d05337d8d5685aef0137c66024 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
parentb503de239f62eca898cfb7e820d9a35499137d22 (diff)
i2c: mpc: Use atomic read and fix break condition
Maxime points out that the polling code in mpc_i2c_isr should use the _atomic API because it is called in an irq context and that the behaviour of the MCF bit is that it is 1 when the byte transfer is complete. All of this means the original code was effectively a udelay(100). Fix this by using readb_poll_timeout_atomic() and removing the negation of the break condition. Fixes: 4a8ac5e45cda ("i2c: mpc: Poll for MCF") Reported-by: Maxime Bizon <[email protected]> Signed-off-by: Chris Packham <[email protected]> Tested-by: Maxime Bizon <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions