Commit e47f213
committed
soundwire: cadence: Clear interrupts before handling them
Clear interrupts before handling them in sdw_cdns_irq() to prevent
loasing events that re-triggered before they can be handled.
Clearing interrupts at the end of sdw_cdns_irq() is a potential race.
If the event re-triggered while sdw_cdns_irq() is still running it
would be cleared when sdw_cdns_irq() ends, so the irq handler would
not be re-triggered to handle it.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: 2f52a51 ("soundwire: cdns: Add cadence library")1 parent 9c731cb commit e47f213
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
953 | 959 | | |
954 | 960 | | |
955 | 961 | | |
| |||
993 | 999 | | |
994 | 1000 | | |
995 | 1001 | | |
996 | | - | |
997 | 1002 | | |
998 | 1003 | | |
999 | 1004 | | |
| |||
0 commit comments