USB: serial: ch341: fix missing simulated-break margin
authorMichael Hanselmann <public@hansmi.ch>
Tue, 7 Jul 2020 14:53:22 +0000 (16:53 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 7 Jul 2020 15:32:02 +0000 (17:32 +0200)
commit6d0bdc42842a8507c8218244b4ced09ca698d965
treeb660b106df91f182ac6fec7ccbc48a0e97bc0ae2
parentc7614ff9b73a1e6fb2b1b51396da132ed22fecdb
USB: serial: ch341: fix missing simulated-break margin

On devices which do not support break signalling a break condition is
simulated by sending a NUL byte at the lowest possible speed. The break
condition will be 9 bit periods long (start bit and eight data bits),
but the transmission itself also includes the stop bit.

Add the missing safety margin of one bit which is intended to account
for timing differences, and fix up the corresponding comment.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
Link: https://lore.kernel.org/r/9909b288-294d-16b9-9f14-51eb79c63b6c@msgid.hansmi.ch
[ johan: amend commit message ]
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ch341.c