]> 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>
Wed, 17 Aug 2022 12:24:22 +0000 (14:24 +0200)
commita45d05118fab11a54b55c69727394f67a5fcd388
tree28a857794c28b21ba05ad0223aae09ac75f58648
parent43239b60ab2972383bbb5fceb31a5d10bc4e27d1
serial: 8250: Fold EndRun device support into OxSemi Tornado code

[ Upstream commit c843a507abcc57d25d1d9ba81c3bd85b764d4900 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/8250/8250_pci.c