Skip to content

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

Andy Shevchenko linux-serial lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- fix possible division by 0 in patch 2 (Jay)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2serial: 8250_pci: Fix ACCES entries in pci_serial_quirks arraydrivers/tty/serial/8250/8250_pci.c+8 -10 replies
2/2serial: 8250_pci: rewrite pericom_do_set_divisor()drivers/tty/serial/8250/8250_pci.c+17 -130 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] 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) Fourth port not being setup correctly on some Pericom chips. Fix the entries in pci_serial_quirks array.

2) 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().

Jay, can you test this again, please?

Changelog v3:
- fix possible division by 0 in patch 2 (Jay)

Changelog v2:
- dropped no-fixes patch, left only fixes here
- amended refactoring of the ->set_divisor()
- fixed Fixes tags

Jay Dolan (2):
serial: 8250_pci: Fix ACCES entries in pci_serial_quirks array
serial: 8250_pci: rewrite pericom_do_set_divisor()

 drivers/tty/serial/8250/8250_pci.c | 39 +++++++++++++++++++-----------
 1 file changed, 25 insertions(+), 14 deletions(-)
Signature · 1 line
2.33.0