diff options
| author | Eddie James <eajames@linux.ibm.com> | 2022-03-17 16:14:26 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-08 13:58:39 +0200 |
| commit | dac1438f347d3b8cf892105c94e254f29c5764de (patch) | |
| tree | 91472eb5dd0deeaf3526df37865f85bcaa8b92f0 /include/linux/atomic | |
| parent | 57bcc9aa20301d77cc978ac14bc502c8ee4f7517 (diff) | |
spi: fsi: Implement a timeout for polling status
[ Upstream commit 89b35e3f28514087d3f1e28e8f5634fbfd07c554 ]
The data transfer routines must poll the status register to
determine when more data can be shifted in or out. If the hardware
gets into a bad state, these polling loops may never exit. Prevent
this by returning an error if a timeout is exceeded.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20220317211426.38940-1-eajames@linux.ibm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/atomic')
0 files changed, 0 insertions, 0 deletions
