OSDN Git Service

USB: serial: f81534: fix tx error on some baud rate
authorJi-Ze Hong (Peter Hong) <hpeter@gmail.com>
Thu, 11 Jan 2018 06:47:20 +0000 (14:47 +0800)
committerJohan Hovold <johan@kernel.org>
Thu, 11 Jan 2018 10:00:25 +0000 (11:00 +0100)
commitd1c48227d7c45fbb35c81f846a62ec92a74f4701
treec392eb4b308459b85833ec49b4b232468f66348c
parentbb543ca287f5b14a61533f959e3f62ae58890311
USB: serial: f81534: fix tx error on some baud rate

The F81532/534 had 4 clocksource 1.846/18.46/14.77/24MHz and baud rates
can be up to 1.5Mbits with 24MHz. But on some baud rate (384~500kps), the
TX side will send the data frame too close to treat frame error on RX
side. This patch will force all TX data frame with delay 1bit gap.

Signed-off-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/f81534.c