projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d50f4f
)
USB: serial: ftdi_sio: simplify divisor handling
author
Johan Hovold
<johan@kernel.org>
Sun, 11 Sep 2022 14:02:15 +0000
(16:02 +0200)
committer
Johan Hovold
<johan@kernel.org>
Thu, 15 Sep 2022 06:06:05 +0000
(08:06 +0200)
In preparation for adding further Hi-Speed types, assume the device type
is Hi-Speed unless it's an explicitly listed legacy type when
determining divisors.
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ftdi_sio.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/ftdi_sio.c
b/drivers/usb/serial/ftdi_sio.c
index
40343ab
..
79069c0
100644
(file)
--- a/
drivers/usb/serial/ftdi_sio.c
+++ b/
drivers/usb/serial/ftdi_sio.c
@@
-1369,9
+1369,7
@@
static u32 get_ftdi_divisor(struct tty_struct *tty,
baud = 9600;
}
break;
- case FT2232H:
- case FT4232H:
- case FT232H:
+ default:
if ((baud <= 12000000) && (baud >= 1200)) {
div_value = ftdi_2232h_baud_to_divisor(baud);
} else if (baud < 1200) {