Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp25696rwb; Wed, 30 Nov 2022 21:21:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf7XmOKJ6mQU9gCzpJxkDdF6G6GDSwQLBWa3J34xi2RmIhS57qUtS7WRrwi6KSRN4K9KWkNG X-Received: by 2002:a17:906:ae99:b0:7c0:82d8:243a with SMTP id md25-20020a170906ae9900b007c082d8243amr10509093ejb.230.1669872118522; Wed, 30 Nov 2022 21:21:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669872118; cv=none; d=google.com; s=arc-20160816; b=k5vcV+QaMMnaCFAhWWSShDiM0DjKoKO8m5ekC/qubhKRjw/1sDMEV4W0JVqK6vpUEP pq6SVRLnRPmcFoUob3ljuiOxuGOO/F0MPjei+NOoLn9Cn6IqEZhvkkutwRj0hC1QF3v2 8pp0uidx5v9rNDItWR22jXbse1dydTGuYZe9de+25gvDwO1bKLCwcXhpwEEXqhHKrnyL 7R8wNxcL6q78P4P40e+OHdJGHxe77pgnxOFYPu0wflLVzIMCpbzuxUOSujTXme+u+s1T IMo2W/sEoyHCx7wMjcyxpzTiCB7q3BuUlYixpHq7TDEqzL37yIVb+vZGrk8VdGj5WQ/R BNnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OoYxmHd1ykxYsbjOqluYp1eUjXsHKR6jZYpQF9XJAVo=; b=cA8EXUXaNU8csgB8oRfg7F1uwYCjJRJhZIsC5LFmOgSUtbztw9OZ4FeC9o6HRwkdLh L2s0EDK5n/96aSGvQF+rxxoBS76Vi/i5OOhleog6Pk0hAWcDSMfA94vuGi8lX/Jyzk9j tHArGIHQ0L+691x6WKfzDuEWf29y4KrOxTCt8aUfXmfB/yG1Tf16lmnvMKnwMZm6+Pqt +/2+7+jWHfj4zE5JXNm4I6p6ptrFqjV7IK0Qte/I/GSlaLEihpUno3EOaDfDGyD4aV2O /MtwyuIUYK1GKAD37z9E/Z7acsIwFe5/47ZWpremm6GwuSPgMOnvqq2OQ6smQXD8AHmu 2uRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Xf8leJwG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020a05640235d500b0045d4a88c735si3527993edc.220.2022.11.30.21.21.38; Wed, 30 Nov 2022 21:21:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Xf8leJwG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229727AbiLAEvO (ORCPT + 83 others); Wed, 30 Nov 2022 23:51:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbiLAEvJ (ORCPT ); Wed, 30 Nov 2022 23:51:09 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 642C999F6F; Wed, 30 Nov 2022 20:51:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1669870267; x=1701406267; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=z6215Ur3yWbRDSC3jbmJMVudvcf38Dw/UAq9Nd4FL6s=; b=Xf8leJwGzRQrmQxQ9TQs1WQamtVuAObafnv7Bh0FRZiNGZ33ji8Thqo8 +z46xUcRaycZMkSPcV8ZHvQKKrG9LYlKjfOc/TxZooXWhsnptZvPWfADK C19p0nhMvOknXFvKZPu8sJw+/9oHmz7KSPSnQmfNTURho8/+MV2yHk0UD 9sisxwhGSfr/0AtOAVNvy9kTJavcQ3dywkBzwLDj8fpbrltzhvfyypGqm lNU8fZWivnQtgU9U+Nl3qviROZsqHwIGLw4IaVVXthBE+QJiNk123pMKi 6x1Vhr14wlW749Pmr1UvKkh/iHbvxktNQLcS3jUj1VUnZDvyn5wevk6MS g==; X-IronPort-AV: E=Sophos;i="5.96,207,1665471600"; d="scan'208";a="185988701" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 30 Nov 2022 21:51:06 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Wed, 30 Nov 2022 21:51:04 -0700 Received: from CHE-LT-UNGSOFTWARE.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Wed, 30 Nov 2022 21:50:58 -0700 From: Kumaravel Thiagarajan To: , CC: , , , , , , , , , , , , , , , , Subject: [PATCH v6 tty-next 0/4] serial: 8250_pci1xxxx: Add driver for the pci1xxxx's quad-uart function Date: Thu, 1 Dec 2022 10:21:42 +0530 Message-ID: <20221201045146.1055913-1-kumaravel.thiagarajan@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pci1xxxx is a PCIe switch with a multi-function endpoint on one of its downstream ports. Quad-uart is one of the functions in the multi-function endpoint. This patch adds device driver for the quad-uart function and enumerates between 1 to 4 instances of uarts based on the PCIe subsystem device ID. The changes from v1->v2->v3->v4->v5->v6 are mentioned in each patch in the patchset. Thanks to Andy Shevchenko, Ilpo Jarvinen, Chritophe JAILLET, Geert Uytterhoeven, Greg KH for their review comments. Kumaravel Thiagarajan (4): serial: 8250_pci: Add serial8250_pci_setup_port definition in 8250_pcilib.c serial: 8250_pci1xxxx: Add driver for quad-uart support. serial: 8250_pci1xxxx: Add RS485 support to quad-uart driver serial: 8250_pci1xxxx: Add power management functions to quad-uart driver MAINTAINERS | 7 + drivers/tty/serial/8250/8250_pci.c | 24 +- drivers/tty/serial/8250/8250_pci1xxxx.c | 463 ++++++++++++++++++++++++ drivers/tty/serial/8250/8250_pcilib.c | 38 ++ drivers/tty/serial/8250/8250_pcilib.h | 9 + drivers/tty/serial/8250/8250_port.c | 8 + drivers/tty/serial/8250/Kconfig | 15 + drivers/tty/serial/8250/Makefile | 2 + include/uapi/linux/serial_core.h | 3 + 9 files changed, 547 insertions(+), 22 deletions(-) create mode 100644 drivers/tty/serial/8250/8250_pci1xxxx.c create mode 100644 drivers/tty/serial/8250/8250_pcilib.c create mode 100644 drivers/tty/serial/8250/8250_pcilib.h -- 2.25.1