mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 13:22:57 +00:00
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 commit6cbe45d8ac
("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:1bc8cde46a
("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>
This commit is contained in:
parent
6e6eebdf5e
commit
637674fa40
1 changed files with 4 additions and 4 deletions
|
@ -2667,7 +2667,7 @@ enum pci_board_num_t {
|
||||||
pbn_panacom2,
|
pbn_panacom2,
|
||||||
pbn_panacom4,
|
pbn_panacom4,
|
||||||
pbn_plx_romulus,
|
pbn_plx_romulus,
|
||||||
pbn_endrun_2_4000000,
|
pbn_endrun_2_3906250,
|
||||||
pbn_oxsemi,
|
pbn_oxsemi,
|
||||||
pbn_oxsemi_1_3906250,
|
pbn_oxsemi_1_3906250,
|
||||||
pbn_oxsemi_2_3906250,
|
pbn_oxsemi_2_3906250,
|
||||||
|
@ -3195,10 +3195,10 @@ static struct pciserial_board pci_boards[] = {
|
||||||
* signal now many ports are available
|
* signal now many ports are available
|
||||||
* 2 port 952 Uart support
|
* 2 port 952 Uart support
|
||||||
*/
|
*/
|
||||||
[pbn_endrun_2_4000000] = {
|
[pbn_endrun_2_3906250] = {
|
||||||
.flags = FL_BASE0,
|
.flags = FL_BASE0,
|
||||||
.num_ports = 2,
|
.num_ports = 2,
|
||||||
.base_baud = 4000000,
|
.base_baud = 3906250,
|
||||||
.uart_offset = 0x200,
|
.uart_offset = 0x200,
|
||||||
.first_offset = 0x1000,
|
.first_offset = 0x1000,
|
||||||
},
|
},
|
||||||
|
@ -4115,7 +4115,7 @@ static const struct pci_device_id serial_pci_tbl[] = {
|
||||||
*/
|
*/
|
||||||
{ PCI_VENDOR_ID_ENDRUN, PCI_DEVICE_ID_ENDRUN_1588,
|
{ PCI_VENDOR_ID_ENDRUN, PCI_DEVICE_ID_ENDRUN_1588,
|
||||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
||||||
pbn_endrun_2_4000000 },
|
pbn_endrun_2_3906250 },
|
||||||
/*
|
/*
|
||||||
* Quatech cards. These actually have configurable clocks but for
|
* Quatech cards. These actually have configurable clocks but for
|
||||||
* now we just use the default.
|
* now we just use the default.
|
||||||
|
|
Loading…
Reference in a new issue