]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250: Fold EndRun device support into OxSemi Tornado code
authorMaciej W. Rozycki <macro@orcam.me.uk>
Mon, 18 Apr 2022 15:27:22 +0000 (16:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 20:36:43 +0000 (22:36 +0200)
commitc843a507abcc57d25d1d9ba81c3bd85b764d4900
treed96f77097599d8c0e8a6b9e7961f32fc49b2d5af
parent75e32aecdd540bed118b525cad0254a983b00e23
serial: 8250: Fold EndRun device support into OxSemi Tornado code

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 uses the same sequence to determine the
number of ports available.  Despite that we have duplicate code
specific to the EndRun device.

Remove redundant code then and factor out OxSemi Tornado device
detection.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/alpine.DEB.2.21.2204181516220.9383@angie.orcam.me.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pci.c