Skip to content

Commit 637674f

Browse files
maciej-w-rozyckigregkh
authored andcommitted
serial: 8250: Correct the clock for EndRun PTP/1588 PCIe device
The EndRun PTP/1588 dual serial port device is based on the Oxford Semiconductor OXPCIe952 UART device with the PCI vendor:device ID set for EndRun Technologies and is therefore driven by a fixed 62.5MHz clock input derived from the 100MHz PCI Express clock. The clock rate is divided by the oversampling rate of 16 as it is supplied to the baud rate generator, yielding the baud base of 3906250. Replace the incorrect baud base of 4000000 with the right value of 3906250 then, complementing commit 6cbe45d ("serial: 8250: Correct the clock for OxSemi PCIe devices"). Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk> Cc: stable <stable@kernel.org> Fixes: 1bc8cde ("8250_pci: Added driver for Endrun Technologies PTP PCIe card.") Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/alpine.DEB.2.21.2204181515270.9383@angie.orcam.me.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6e6eebd commit 637674f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/tty/serial/8250/8250_pci.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,7 @@ enum pci_board_num_t {
26672667
pbn_panacom2,
26682668
pbn_panacom4,
26692669
pbn_plx_romulus,
2670-
pbn_endrun_2_4000000,
2670+
pbn_endrun_2_3906250,
26712671
pbn_oxsemi,
26722672
pbn_oxsemi_1_3906250,
26732673
pbn_oxsemi_2_3906250,
@@ -3195,10 +3195,10 @@ static struct pciserial_board pci_boards[] = {
31953195
* signal now many ports are available
31963196
* 2 port 952 Uart support
31973197
*/
3198-
[pbn_endrun_2_4000000] = {
3198+
[pbn_endrun_2_3906250] = {
31993199
.flags = FL_BASE0,
32003200
.num_ports = 2,
3201-
.base_baud = 4000000,
3201+
.base_baud = 3906250,
32023202
.uart_offset = 0x200,
32033203
.first_offset = 0x1000,
32043204
},
@@ -4115,7 +4115,7 @@ static const struct pci_device_id serial_pci_tbl[] = {
41154115
*/
41164116
{ PCI_VENDOR_ID_ENDRUN, PCI_DEVICE_ID_ENDRUN_1588,
41174117
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
4118-
pbn_endrun_2_4000000 },
4118+
pbn_endrun_2_3906250 },
41194119
/*
41204120
* Quatech cards. These actually have configurable clocks but for
41214121
* now we just use the default.

0 commit comments

Comments
 (0)