From 52f5c7f85f91d982ea66067d974875a89b7a679f Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: May 25 2023 07:19:37 +0000 Subject: serial: Add support for Advantech PCI-1611U card (git-fixes). --- diff --git a/patches.suse/serial-Add-support-for-Advantech-PCI-1611U-card.patch b/patches.suse/serial-Add-support-for-Advantech-PCI-1611U-card.patch new file mode 100644 index 0000000..175b720 --- /dev/null +++ b/patches.suse/serial-Add-support-for-Advantech-PCI-1611U-card.patch @@ -0,0 +1,54 @@ +From d2b00516de0e1d696724247098f6733a6ea53908 Mon Sep 17 00:00:00 2001 +From: Vitaliy Tomin +Date: Sun, 23 Apr 2023 11:45:12 +0800 +Subject: [PATCH] serial: Add support for Advantech PCI-1611U card +Git-commit: d2b00516de0e1d696724247098f6733a6ea53908 +Patch-mainline: v6.4-rc3 +References: git-fixes + +Add support for Advantech PCI-1611U card + +Advantech provides opensource drivers for this and many others card +based on legacy copy of 8250_pci driver called adv950 + +https://www.advantech.com/emt/support/details/driver?id=1-TDOIMJ + +It is hard to maintain to run as out of tree module on newer kernels. +Just adding PCI ID to kernel 8250_pci works perfect. + +Signed-off-by: Vitaliy Tomin +Cc: stable +Link: https://lore.kernel.org/r/20230423034512.2671157-1-tomin@iszf.irk.ru +Signed-off-by: Greg Kroah-Hartman +Acked-by: Takashi Iwai + +--- + drivers/tty/serial/8250/8250_pci.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c +index c55be6fda0ca..e80c4f6551a1 100644 +--- a/drivers/tty/serial/8250/8250_pci.c ++++ b/drivers/tty/serial/8250/8250_pci.c +@@ -1920,6 +1920,8 @@ pci_moxa_setup(struct serial_private *priv, + #define PCI_SUBDEVICE_ID_SIIG_DUAL_30 0x2530 + #define PCI_VENDOR_ID_ADVANTECH 0x13fe + #define PCI_DEVICE_ID_INTEL_CE4100_UART 0x2e66 ++#define PCI_DEVICE_ID_ADVANTECH_PCI1600 0x1600 ++#define PCI_DEVICE_ID_ADVANTECH_PCI1600_1611 0x1611 + #define PCI_DEVICE_ID_ADVANTECH_PCI3620 0x3620 + #define PCI_DEVICE_ID_ADVANTECH_PCI3618 0x3618 + #define PCI_DEVICE_ID_ADVANTECH_PCIf618 0xf618 +@@ -4085,6 +4087,9 @@ static SIMPLE_DEV_PM_OPS(pciserial_pm_ops, pciserial_suspend_one, + pciserial_resume_one); + + static const struct pci_device_id serial_pci_tbl[] = { ++ { PCI_VENDOR_ID_ADVANTECH, PCI_DEVICE_ID_ADVANTECH_PCI1600, ++ PCI_DEVICE_ID_ADVANTECH_PCI1600_1611, PCI_ANY_ID, 0, 0, ++ pbn_b0_4_921600 }, + /* Advantech use PCI_DEVICE_ID_ADVANTECH_PCI3620 (0x3620) as 'PCI_SUBVENDOR_ID' */ + { PCI_VENDOR_ID_ADVANTECH, PCI_DEVICE_ID_ADVANTECH_PCI3620, + PCI_DEVICE_ID_ADVANTECH_PCI3620, 0x0001, 0, 0, +-- +2.35.3 + diff --git a/series.conf b/series.conf index ca9c43d..a9585b8 100644 --- a/series.conf +++ b/series.conf @@ -20165,6 +20165,7 @@ patches.suse/xhci-Fix-incorrect-tracking-of-free-space-on-transfe.patch patches.suse/thunderbolt-Clear-registers-properly-when-auto-clear.patch patches.suse/serial-8250_exar-Add-support-for-USR298x-PCI-Modems.patch + patches.suse/serial-Add-support-for-Advantech-PCI-1611U-card.patch patches.suse/serial-arc_uart-fix-of_iomap-leak-in-arc_serial_prob.patch patches.suse/serial-8250_bcm7271-balance-clk_enable-calls.patch patches.suse/serial-8250_bcm7271-fix-leak-in-brcmuart_probe.patch