]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 17 Oct 2022 09:57:05 +0000 (11:57 +0200)
commit1bae2ec183832045783cf931eeca919c1159381d
tree7e9a436ff331859bda8a7f99a75f66281fa2afea
parent8f75192583b455568e7199a4ff535bca35dd760c
serial: 8250: Fold EndRun device support into OxSemi Tornado code

BugLink: https://bugs.launchpad.net/bugs/1990162
[ Upstream commit 1f32c65bad24b9787d3e52843de375430e3df822 ]

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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/tty/serial/8250/8250_pci.c