Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spi: spi-axi-spi-engine: setup the timer before IRQ enable
The watchdog timer was being activated after enabling the interrupts and that could actually lead for the message to be transferred before we get to call mod_timer() which would lead to a spurious soft interrupt. In extreme cases (like playing with overlays to load + unload devices) this could lead to a panic splat as the timer callback would be called with the spi engine device gone already. Fixes: fde5597 ("spi: axi-spi-engine: Add watchdog timer") Signed-off-by: Nuno Sa <[email protected]>
- Loading branch information