diff options
author | Johan Hovold <johan@kernel.org> | 2020-10-25 18:45:54 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2020-11-04 11:01:36 +0100 |
commit | 7184933b52a6b3e64171819b77f0bab018696cb2 (patch) | |
tree | 08ab9a8ad9391c8f6d266caa7a9c891205bd186c /tools/perf/scripts/python/stackcollapse.py | |
parent | 79fe6826a5ebee2724d432a736ec04d8dca143ba (diff) |
USB: serial: keyspan_pda: fix write implementation
Fix stalled writes by checking the available buffer space after
requesting an unthrottle notification in case the device buffer is
already empty so that no notification is ever sent (e.g. when doing
single character writes).
This also means we can drop the room query from write() which was
conditioned on in_interrupt() and prevented writing using this driver
from atomic contexts (e.g. PPP).
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions