-
Notifications
You must be signed in to change notification settings - Fork 848
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spi: axi-spi-engine: Add watchdog timer
If there is an issue with the axi-spi-engine hardware a scheduled transfer might never be completed and spi_sync() will block forever. Add a watchdog timer that will abort a transfer after 5 seconds after it has been started. This will potentially leave the hardware in a broken state, but it allows software to recover and allow to better diagnose the underlying issue. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
- Loading branch information
1 parent
51ebbb9
commit fde5597
Showing
1 changed file
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters