Skip to content

serial: 8250_pci patches to address issues with pericom_do_set_divisor()

Jay Dolan linux-serial 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3serial: 8250_pci: rewrite pericom_do_set_divisordrivers/tty/serial/8250/8250_pci.c+16 -121 reply
2/3serial: 8250_pci: Re-enable higher baud rates on Pericom chipsdrivers/tty/serial/8250/8250_pci.c+7 -01 reply
3/3serial: 8250_pci: Fix ACCES entries in pci_serial_quirks arraydrivers/tty/serial/8250/8250_pci.c+8 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] serial: 8250_pci patches to address issues with pericom_do_set_divisor()

A series patches to address three issues one customer managed to hit all at once.

1) Rewrite pericom_do_set_divisor() to always calc divisor and to use the uartclk instead of a hard coded value. Always calculate divisor without passing control to serial8250_do_set_divisor()
Tested with 14.7456 and 24 MHz crystals

2) Re-enable higher baud rates on Pericom chips. serial8250_get_baud_rate() added range checking, but Pericom chips have a wider range than what is being enforced. Make use of UPF_MAGIC_MULTIPLIER. Tested with 14.7456 and 24 MHz crystals

3) Fourth port not being setup correctly on some Pericom chips. Fix entries in pci_serial_quirks array

Jay Dolan (3):
serial: 8250_pci: rewrite pericom_do_set_divisor
serial: 8250_pci: Re-enable higher baud rates on Pericom chips
serial: 8250_pci: Fix ACCES entries in pci_serial_quirks array

 drivers/tty/serial/8250/8250_pci.c | 44 +++++++++++++++++++++---------
 1 file changed, 31 insertions(+), 13 deletions(-)

--
2.25.1