Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1424181rwb; Thu, 15 Dec 2022 09:56:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf7PVccl42AFGsWNks3DyjQa21PPNmDhbjOF6v/+dEDulqAg3Xo/68bcaZvYZfbuGsPBu6Hd X-Received: by 2002:a05:6402:159:b0:461:22bb:1ae4 with SMTP id s25-20020a056402015900b0046122bb1ae4mr26657324edu.17.1671126994682; Thu, 15 Dec 2022 09:56:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671126994; cv=none; d=google.com; s=arc-20160816; b=XcZXtFpVMbNutqgdCpyWP6DBCzZPDSz80OlDpbezVU0TlGNv9jdsYcyK/2/R6lgRJQ FWCKPgDIhQ2mNkkS27qnQAJGGNxIKTwmZVnfJ5Cj4ZEIgxILgcu6/57lrbcazHEe93fA 197i2EBx9eKv/VA2/1IpHDAzN4K9a1aO4iuB4xDv/o+e1KbOcyu2xK09HtpEcndxg9IO XAAZ1zWgKtAEGS3dZBPJ79TIJfCKsQHSAXpA+WRFMse5nkpNs8iVo6Yv2uqloyprvPAw DKsFJpHmJpDbwlvcLXOP5lwZBXjkCfCNiRGUBc40B5gtqC2iVxDQXzbABW+4kdv+e02J krWg== 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=zgtlzD+LmdEr5JYI3zJIj4TwtHnbtvcEGyij15O71cw=; b=ErCSev6KmHk8f4f7xbre459lVkvN7jYyoHO14VkJxCiHHrI3dklQRP6WeFZEcLfvI6 0DkXgKrf5G/VZjW0qnwVy2usoqC5aP9WUgJkQcW4CiXImhygKfsvy3shagKzzyua4Ns0 qCuUkwEbF14AMOr20XEORpbZa9BbeDcD+V8+D3nXVXPvuSWFoKp9AGkXwefOacIqJwDP mNmQgnpReSNh9EpZTu3/hSAMlf3uNfNouJpLq3FkNmNwL2Gt09Kj/IbDR20zI1Owm1RT 6HMHq9nX88k6NGnuNKMYPW/fIpDcC10f0CfKHteWlbIQXJL2NQ1Vv7st0piHZ8fk+aVD FwSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Gf3fp1Ay; 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 z6-20020a05640235c600b004739d471e12si2868330edc.280.2022.12.15.09.56.18; Thu, 15 Dec 2022 09:56:34 -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=Gf3fp1Ay; 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 S229748AbiLOQwP (ORCPT + 68 others); Thu, 15 Dec 2022 11:52:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiLOQwO (ORCPT ); Thu, 15 Dec 2022 11:52:14 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9609E26107; Thu, 15 Dec 2022 08:52:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1671123130; x=1702659130; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=B65eeEOBlhMcgevYuQJPH0nL/7LUbZ6ZkzNYMjmoIEo=; b=Gf3fp1AylDqgLHmVTdAWmHp8H4zD3YMQXIcAGfWNwikGA2yA4psXKxiq j8aQCERVBbX0J4u1KtsJ1Eq9d/742LS9+q8FUQiQUtybq1ywpW3P2DuGm JLtIXDa3IJbOFHz2N6eonO0xQ2+R7Xic3u54+QW++RYDKdgXdgxW+LOjp OzgVB9IR7+DP/EcUvsju7K81W232VM/aiJ9qiMerldcM1GmGOuCLO4av/ YUOb32qIiMbul0CD4mxEkKjrkiAy90l57ufXZta44yB8q7Ej8QV9vt9/J 5iL5plCAgFR5Ae3fDXqucJZK5UrIpygG2LCvNtaHKnP8LEo3JWNMuMmoR g==; X-IronPort-AV: E=Sophos;i="5.96,248,1665471600"; d="scan'208";a="191874359" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Dec 2022 09:52:08 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 15 Dec 2022 09:52:07 -0700 Received: from CHE-LT-UNGSOFTWARE.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Thu, 15 Dec 2022 09:52:02 -0700 From: Kumaravel Thiagarajan To: CC: , , , , , , , , , , , , , , , , Subject: [PATCH v9 tty-next 0/4] serial: 8250_pci1xxxx: Add driver for the pci1xxxx's quad-uart function Date: Fri, 16 Dec 2022 10:56:52 +0530 Message-ID: <20221216052656.2098100-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=-1.2 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_12_24, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,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->v7->v8->v9 are mentioned in each patch in the patchset. Thanks to Andy Shevchenko, Ilpo Jarvinen, Chritophe JAILLET, Geert Uytterhoeven, Greg KH, Jiri Slaby 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 | 25 +- drivers/tty/serial/8250/8250_pci1xxxx.c | 493 ++++++++++++++++++++++++ drivers/tty/serial/8250/8250_pcilib.c | 39 ++ drivers/tty/serial/8250/8250_pcilib.h | 15 + 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, 585 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