Commit 92e73d8
i2c: npcm7xx: Fix callback completion ordering
Sometimes, our completions race with new master transfers and override
the bus->operation and bus->master_or_slave variables. This causes
transactions to timeout and kernel crashes less frequently.
To remedy this, we re-order all completions to the very end of the
function.
Fixes: 56a1485 ("i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver")
Signed-off-by: William A. Kennington III <william@wkennington.com>
Reviewed-by: Tali Perry <tali.perry1@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>1 parent b13e59e commit 92e73d8
1 file changed
+7
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
| 697 | + | |
697 | 698 | | |
698 | 699 | | |
699 | 700 | | |
| |||
722 | 723 | | |
723 | 724 | | |
724 | 725 | | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
| 726 | + | |
| 727 | + | |
729 | 728 | | |
730 | 729 | | |
731 | 730 | | |
732 | | - | |
733 | | - | |
734 | | - | |
| 731 | + | |
735 | 732 | | |
736 | 733 | | |
737 | 734 | | |
738 | 735 | | |
739 | | - | |
740 | | - | |
741 | | - | |
| 736 | + | |
742 | 737 | | |
743 | 738 | | |
744 | 739 | | |
| |||
752 | 747 | | |
753 | 748 | | |
754 | 749 | | |
| 750 | + | |
| 751 | + | |
755 | 752 | | |
756 | 753 | | |
757 | 754 | | |
| |||
0 commit comments