Commit 4f7275f
i2c: i801: Don't clear status flags twice in interrupt mode
In interrupt mode we clear the status flags twice, in the interrupt
handler and in i801_check_post(). Remove clearing the status flags
from i801_check_post() and handle polling mode by using the
SMBus unlocking write to also clear the status flags if still set.
To be precise: One could still argue that the status flags are
cleared twice in interrupt mode, but it comes for free.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Tested-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>1 parent 8c7a896 commit 4f7275f
1 file changed
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | 359 | | |
365 | 360 | | |
366 | 361 | | |
| |||
385 | 380 | | |
386 | 381 | | |
387 | 382 | | |
388 | | - | |
389 | 383 | | |
390 | 384 | | |
391 | 385 | | |
| |||
424 | 418 | | |
425 | 419 | | |
426 | 420 | | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | 421 | | |
431 | 422 | | |
432 | 423 | | |
| |||
923 | 914 | | |
924 | 915 | | |
925 | 916 | | |
926 | | - | |
927 | | - | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
928 | 922 | | |
929 | 923 | | |
930 | 924 | | |
| |||
0 commit comments