From patchwork Mon Jul 24 08:39:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaqing Zhao X-Patchwork-Id: 706092 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41B3CC001E0 for ; Mon, 24 Jul 2023 08:40:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231698AbjGXIkS (ORCPT ); Mon, 24 Jul 2023 04:40:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231759AbjGXIkJ (ORCPT ); Mon, 24 Jul 2023 04:40:09 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18E49E53; Mon, 24 Jul 2023 01:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690188002; x=1721724002; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7XetFSB8w0abNmptL2jZLyIL/EPTDluuPN5UWBbyacE=; b=IdLUMOhySdHSvoObQZECBF6UbFAxItHsOef1U8bTW/o1Zcwh9xDk0Tfc 2Jm3cZcXaGsw2PNQxQV0/JqSqMFJK4rZBye2F1woY+O1fF+pOm8NtkBQn JUkV1vALdoPV2Icq4p2jiooXWVGqIwmQpKw0eqbAeWK4SXNB2zgO7/s4T khZjbyjl2Tr2kn5P62pUu7nsWuxfAHlf+oQFfwg/LmNs2b7R+1tWoXRwz v3Mh4gvrXWeFHxBeLtv18xvrqY8wkgwb5xt3FfLwJa2vMny3ZFBI2SDqA CSKa1EmvUlRxMV14IfGEu9kTALIlLOmfhSONwPyx4mzPyymoEw5PaJxih Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="433627626" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="433627626" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2023 01:40:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="675749439" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="675749439" Received: from unknown (HELO jiaqingz-acrn-container.sh.intel.com) ([10.239.138.235]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2023 01:39:58 -0700 From: Jiaqing Zhao To: Greg Kroah-Hartman , Sudip Mukherjee Cc: Andy Shevchenko , Wolfgang Grandegger , Marc Kleine-Budde , Gerhard Uttenthaler , support@ems-wuensche.com, linux-serial@vger.kernel.org, linux-pci@vger.kernel.org, linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, Jiaqing Zhao Subject: [PATCH v3 1/4] can: ems_pci: remove PCI_SUBVENDOR_ID_ASIX definition Date: Mon, 24 Jul 2023 08:39:30 +0000 Message-Id: <20230724083933.3173513-2-jiaqing.zhao@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230724083933.3173513-1-jiaqing.zhao@linux.intel.com> References: <20230724083933.3173513-1-jiaqing.zhao@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org PCI_SUBVENDOR_ID_ASIX is defined as 0xa000, which is not the vendor id assigned to ASIX by PCI-SIG. Remove it to avoid possible confusion and conflict. Signed-off-by: Jiaqing Zhao Reviewed-by: Andy Shevchenko Acked-by: Marc Kleine-Budde --- drivers/net/can/sja1000/ems_pci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/can/sja1000/ems_pci.c b/drivers/net/can/sja1000/ems_pci.c index c56e27223e5f..3e18c63a982c 100644 --- a/drivers/net/can/sja1000/ems_pci.c +++ b/drivers/net/can/sja1000/ems_pci.c @@ -111,7 +111,6 @@ struct ems_pci_card { #ifndef PCI_VENDOR_ID_ASIX #define PCI_VENDOR_ID_ASIX 0x125b #define PCI_DEVICE_ID_ASIX_9110 0x9110 -#define PCI_SUBVENDOR_ID_ASIX 0xa000 #endif #define PCI_SUBDEVICE_ID_EMS 0x4010 @@ -123,7 +122,7 @@ static const struct pci_device_id ems_pci_tbl[] = { /* CPC-104P v2 */ {PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9030, PCI_VENDOR_ID_PLX, 0x4002}, /* CPC-PCIe v3 */ - {PCI_VENDOR_ID_ASIX, PCI_DEVICE_ID_ASIX_9110, PCI_SUBVENDOR_ID_ASIX, PCI_SUBDEVICE_ID_EMS}, + {PCI_VENDOR_ID_ASIX, PCI_DEVICE_ID_ASIX_9110, 0xa000, PCI_SUBDEVICE_ID_EMS}, {0,} }; MODULE_DEVICE_TABLE(pci, ems_pci_tbl); From patchwork Mon Jul 24 08:39:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaqing Zhao X-Patchwork-Id: 706543 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6913BC001DE for ; Mon, 24 Jul 2023 08:40:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231697AbjGXIkR (ORCPT ); Mon, 24 Jul 2023 04:40:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231774AbjGXIkL (ORCPT ); Mon, 24 Jul 2023 04:40:11 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE4FE1B3; Mon, 24 Jul 2023 01:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690188005; x=1721724005; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GXGUXOyWj2acYIZwp5hVh/iVe3ctKxu2VHDl+PPjxxo=; b=bcKyLyTkbTUL7Xs1PJHNV/oTBJb/SyXSE5LTgyRldmq1FnSpPoKlANl/ ziAzrLmnVWw95D6E/OuxWjLhz1ECabRqkJd8e3isns/d9Bgggf/Dvqrze cwMZHZ9KjDSYMVaG7WpeNylYtJA6Kiz4fb+Ew9PUN4N38mTlP+e0BUs3N jYx+I+oJUtkxrXnXdlQ+numTd/uBjX/FXAhb3J+8SJY2zWROj2RvKo+V6 B6xaFhtjX69sXLmVTdX6TKXJTK6Tzx5pb6CkKypgfY1RNpR5pAx0i6Grq zikG9YYKbWjfmhxysCtWmVPxmWK6CB71zA+L0HCvqoB8p9tzC7Ty4Y/Rc g==; X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="433627651" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="433627651" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2023 01:40:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="675749464" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="675749464" Received: from unknown (HELO jiaqingz-acrn-container.sh.intel.com) ([10.239.138.235]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2023 01:40:01 -0700 From: Jiaqing Zhao To: Greg Kroah-Hartman , Sudip Mukherjee Cc: Andy Shevchenko , Wolfgang Grandegger , Marc Kleine-Budde , Gerhard Uttenthaler , support@ems-wuensche.com, linux-serial@vger.kernel.org, linux-pci@vger.kernel.org, linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, Jiaqing Zhao , Bjorn Helgaas Subject: [PATCH v3 2/4] can: ems_pci: move ASIX AX99100 ids to pci_ids.h Date: Mon, 24 Jul 2023 08:39:31 +0000 Message-Id: <20230724083933.3173513-3-jiaqing.zhao@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230724083933.3173513-1-jiaqing.zhao@linux.intel.com> References: <20230724083933.3173513-1-jiaqing.zhao@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Move PCI Vendor and Device ID of ASIX AX99100 PCIe to Multi I/O Controller to pci_ids.h for its serial and parallel port driver support in subsequent patches. Signed-off-by: Jiaqing Zhao Reviewed-by: Andy Shevchenko Acked-by: Bjorn Helgaas Acked-by: Marc Kleine-Budde --- drivers/net/can/sja1000/ems_pci.c | 6 +----- include/linux/pci_ids.h | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/can/sja1000/ems_pci.c b/drivers/net/can/sja1000/ems_pci.c index 3e18c63a982c..1aaedaf866f1 100644 --- a/drivers/net/can/sja1000/ems_pci.c +++ b/drivers/net/can/sja1000/ems_pci.c @@ -108,10 +108,6 @@ struct ems_pci_card { #define EMS_PCI_BASE_SIZE 4096 /* size of controller area */ -#ifndef PCI_VENDOR_ID_ASIX -#define PCI_VENDOR_ID_ASIX 0x125b -#define PCI_DEVICE_ID_ASIX_9110 0x9110 -#endif #define PCI_SUBDEVICE_ID_EMS 0x4010 static const struct pci_device_id ems_pci_tbl[] = { @@ -122,7 +118,7 @@ static const struct pci_device_id ems_pci_tbl[] = { /* CPC-104P v2 */ {PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9030, PCI_VENDOR_ID_PLX, 0x4002}, /* CPC-PCIe v3 */ - {PCI_VENDOR_ID_ASIX, PCI_DEVICE_ID_ASIX_9110, 0xa000, PCI_SUBDEVICE_ID_EMS}, + {PCI_VENDOR_ID_ASIX, PCI_DEVICE_ID_ASIX_AX99100_LB, 0xa000, PCI_SUBDEVICE_ID_EMS}, {0,} }; MODULE_DEVICE_TABLE(pci, ems_pci_tbl); diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 2dc75df1437f..16608ce4fd0f 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1760,6 +1760,10 @@ #define PCI_SUBDEVICE_ID_AT_2700FX 0x2701 #define PCI_SUBDEVICE_ID_AT_2701FX 0x2703 +#define PCI_VENDOR_ID_ASIX 0x125b +#define PCI_DEVICE_ID_ASIX_AX99100 0x9100 +#define PCI_DEVICE_ID_ASIX_AX99100_LB 0x9110 + #define PCI_VENDOR_ID_ESS 0x125d #define PCI_DEVICE_ID_ESS_ESS1968 0x1968 #define PCI_DEVICE_ID_ESS_ESS1978 0x1978 From patchwork Mon Jul 24 08:39:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaqing Zhao X-Patchwork-Id: 706541 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BB83C04FE2 for ; Mon, 24 Jul 2023 08:40:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231726AbjGXIkU (ORCPT ); Mon, 24 Jul 2023 04:40:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231777AbjGXIkL (ORCPT ); Mon, 24 Jul 2023 04:40:11 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 428B9E73; Mon, 24 Jul 2023 01:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690188008; x=1721724008; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dB65KYAnPw+sNmlSCdKHMTxaILoR7JZ35XDU87KFMkQ=; b=SmlsB+tw8Noal+1XL/3RZP3cnNoJ+IFkNJJgj4o6aflpCEFmvymX1TXn f7zg8ZTggaJ+FTzdFmeBA4ttHvkx08t/HZMB7tA+wHZ990ipHzysE0lWT lUKOnBZX/J1wi4gSy9NSAmZG89eccw/GKaOFY/REZ5aoCRFMcgNjdhhRk NJ753lC3wOLCmRBLXPhQx6xXQ5MbyINWDbzp3ot+7Oe1V+v2gUIOOKy34 f1N4CvaoeUb7zflrn4Y1sSZuOO7P45QCHtrMnYXO9BjwFYWK5HGV7AMAk kFrZHWMfqDAN88a2G8OAmJXGqxFi6XiB9LI6l9E1xquNdsEKq7RId7sNE w==; X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="433627671" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="433627671" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2023 01:40:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="675749498" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="675749498" Received: from unknown (HELO jiaqingz-acrn-container.sh.intel.com) ([10.239.138.235]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2023 01:40:05 -0700 From: Jiaqing Zhao To: Greg Kroah-Hartman , Sudip Mukherjee Cc: Andy Shevchenko , Wolfgang Grandegger , Marc Kleine-Budde , Gerhard Uttenthaler , support@ems-wuensche.com, linux-serial@vger.kernel.org, linux-pci@vger.kernel.org, linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, Jiaqing Zhao Subject: [PATCH v3 3/4] serial: 8250_pci: add support for ASIX AX99100 Date: Mon, 24 Jul 2023 08:39:32 +0000 Message-Id: <20230724083933.3173513-4-jiaqing.zhao@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230724083933.3173513-1-jiaqing.zhao@linux.intel.com> References: <20230724083933.3173513-1-jiaqing.zhao@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Each of the 4 PCI functions on ASIX AX99100 PCIe to Multi I/O Controller can be configured as a single-port serial port controller. The subvendor id is 0x1000 when configured as serial port and MSI interrupts are supported. Signed-off-by: Jiaqing Zhao Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_pci.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index d2d547b5da95..62a9bd30b4db 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -67,6 +67,8 @@ static const struct pci_device_id pci_use_msi[] = { 0xA000, 0x1000) }, { PCI_DEVICE_SUB(PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9922, 0xA000, 0x1000) }, + { PCI_DEVICE_SUB(PCI_VENDOR_ID_ASIX, PCI_DEVICE_ID_ASIX_AX99100, + 0xA000, 0x1000) }, { PCI_DEVICE_SUB(PCI_VENDOR_ID_HP_3PAR, PCI_DEVICE_ID_HPE_PCI_SERIAL, PCI_ANY_ID, PCI_ANY_ID) }, { } @@ -5557,6 +5559,14 @@ static const struct pci_device_id serial_pci_tbl[] = { { PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9865, 0xA000, 0x3004, 0, 0, pbn_b0_bt_4_115200 }, + + /* + * ASIX AX99100 PCIe to Multi I/O Controller + */ + { PCI_VENDOR_ID_ASIX, PCI_DEVICE_ID_ASIX_AX99100, + 0xA000, 0x1000, + 0, 0, pbn_b0_1_115200 }, + /* Intel CE4100 */ { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CE4100_UART, PCI_ANY_ID, PCI_ANY_ID, 0, 0, From patchwork Mon Jul 24 08:39:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaqing Zhao X-Patchwork-Id: 706091 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7546CC05052 for ; Mon, 24 Jul 2023 08:40:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231732AbjGXIkW (ORCPT ); Mon, 24 Jul 2023 04:40:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231792AbjGXIkP (ORCPT ); Mon, 24 Jul 2023 04:40:15 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D16E1A1; Mon, 24 Jul 2023 01:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690188011; x=1721724011; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ACtwk6q0osdWK/LRY8lcrJv/gU2GjAAIEZNi8CD+KKM=; b=dPpx5aVju3ej9PX4u7K7zKzQViO7AN1G5Wb2VRVEqbiIVBJd3HDdGZF8 Msi036d57dOHW/ZdOLMOubqMqYj6FjKoNJZjz789kvod+znaUCMYDXCDY W6++miZdpCpQQFKEnoCOsF9xy8WuMRA8pn7TcYaIjqQ96sZXCbXvy7ChF 0LGEcTylfTXKmMlIvzngSbaPrw0/Fuz2FtIFYcxJLCjIvqcIIjsLk1dFL o172C2re2RnL5CA6aeU473YnO+JGJ8IpniMV4stqmt5YgcoeBSeF8mZdA UNApLqJ7av3+NXupfqFcv7nCYdMZlodCKND8zJcY9Ep5a5LwcsZTuOjAg Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="433627685" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="433627685" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2023 01:40:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="675749521" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="675749521" Received: from unknown (HELO jiaqingz-acrn-container.sh.intel.com) ([10.239.138.235]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2023 01:40:08 -0700 From: Jiaqing Zhao To: Greg Kroah-Hartman , Sudip Mukherjee Cc: Andy Shevchenko , Wolfgang Grandegger , Marc Kleine-Budde , Gerhard Uttenthaler , support@ems-wuensche.com, linux-serial@vger.kernel.org, linux-pci@vger.kernel.org, linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, Jiaqing Zhao Subject: [PATCH v3 4/4] parport_pc: add support for ASIX AX99100 Date: Mon, 24 Jul 2023 08:39:33 +0000 Message-Id: <20230724083933.3173513-5-jiaqing.zhao@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230724083933.3173513-1-jiaqing.zhao@linux.intel.com> References: <20230724083933.3173513-1-jiaqing.zhao@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org The PCI function 2 on ASIX AX99100 PCIe to Multi I/O Controller can be configured as a single-port parallel port controller. The subvendor id is 0x2000 when configured as parallel port. It supports IEEE-1284 EPP / ECP with its ECR on BAR1. Signed-off-by: Jiaqing Zhao Reviewed-by: Andy Shevchenko Acked-by: Sudip Mukherjee --- drivers/parport/parport_pc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c index 3bacbaf16f42..1f236aaf7867 100644 --- a/drivers/parport/parport_pc.c +++ b/drivers/parport/parport_pc.c @@ -2655,6 +2655,7 @@ enum parport_pc_pci_cards { netmos_9815, netmos_9901, netmos_9865, + asix_ax99100, quatech_sppxp100, wch_ch382l, }; @@ -2733,6 +2734,7 @@ static struct parport_pc_pci { /* netmos_9815 */ { 2, { { 0, 1 }, { 2, 3 }, } }, /* netmos_9901 */ { 1, { { 0, -1 }, } }, /* netmos_9865 */ { 1, { { 0, -1 }, } }, + /* asix_ax99100 */ { 1, { { 0, 1 }, } }, /* quatech_sppxp100 */ { 1, { { 0, 1 }, } }, /* wch_ch382l */ { 1, { { 2, -1 }, } }, }; @@ -2823,6 +2825,9 @@ static const struct pci_device_id parport_pc_pci_tbl[] = { 0xA000, 0x1000, 0, 0, netmos_9865 }, { PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9865, 0xA000, 0x2000, 0, 0, netmos_9865 }, + /* ASIX AX99100 PCIe to Multi I/O Controller */ + { PCI_VENDOR_ID_ASIX, PCI_DEVICE_ID_ASIX_AX99100, + 0xA000, 0x2000, 0, 0, asix_ax99100 }, /* Quatech SPPXP-100 Parallel port PCI ExpressCard */ { PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_SPPXP_100, PCI_ANY_ID, PCI_ANY_ID, 0, 0, quatech_sppxp100 },