diff options
author | Esben Haabendal <[email protected]> | 2024-04-11 14:19:23 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-04-17 13:13:57 +0200 |
commit | e533e4c62e9993e62e947ae9bbec34e4c7ae81c2 (patch) | |
tree | 1919ce2533e8e432eb4bf432d3a000abefb86ca1 /lib/memory-notifier-error-inject.c | |
parent | abcd8632f26bbc24c4364b9cdf4feb8c9828c0c6 (diff) |
serial: imx: Introduce timeout when waiting on transmitter empty
By waiting at most 1 second for USR2_TXDC to be set, we avoid a potential
deadlock.
In case of the timeout, there is not much we can do, so we simply ignore
the transmitter state and optimistically try to continue.
Signed-off-by: Esben Haabendal <[email protected]>
Acked-by: Marc Kleine-Budde <[email protected]>
Link: https://lore.kernel.org/r/919647898c337a46604edcabaf13d42d80c0915d.1712837613.git.esben@geanix.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions