Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1562623rwb; Wed, 16 Nov 2022 21:04:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf7UdBqL79I2jWvmCFXNfY205dKhb6Mef/gPB7l/gNhKyimASe2C8Hq8cfCWsiAIZX55icfx X-Received: by 2002:a17:902:8a81:b0:186:9849:5c1a with SMTP id p1-20020a1709028a8100b0018698495c1amr1139295plo.110.1668661468018; Wed, 16 Nov 2022 21:04:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668661468; cv=none; d=google.com; s=arc-20160816; b=x7uuK+vDaCtXHJiwWafg6coFyOov+RvLKj/HeWbp41VriwpMCXgSKr3UtFdR5FJeAK Liv4J1NLZX/sRLP7yaAyq0ncuqO0dgm8/3ZYD7ai01x/mMkrsAdU/GkRTY1T5SMhgX5Y ANw3P6QxSiV1t4C4XHzMAcSlUsD3QkEbts1T0bpSMawAb0E3OvvDdp0JB6ZoaBUTzXVi TkghQYk+6eC6GOCZ7MbkMClE4DZqekCzolSdeJuHS4nVnqvC5uysic/XPI3NuEEGgRVK Jgb7h5JQTokhcxwV2mKDZu/AaRlOHJ74VXcTKswtQTFQ7N8vKx+joslsxSlEvCzbzd29 aZag== 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=W2Hx8e/2E5HnlTuRQJ8hCr8pvkKL9iQ4Da4846hq4F8=; b=OAgznsmYLUju/XW1Fngnz99AM3rZK9A2k17Hv2/qe2qRwPceC68vHF2FkNjcoNbFRR adJIrM+53M5FKqutoP9Wn5gh62L7fTX5bi+H0jSpiFuXTDofXa67F5iB8LXMhuQou7bi mJ50MQZd7XyydF7X1yxcGjGNcAUxVfjUWKdURwXiywoH6tVoHXNeoTTTsDeTs2U0QaDp gmiARupXbXCqw7QfhPtXfzFi27/0bPJ5t44cLvcOOg5MJwOah/q6dTjLSI0D6O6WGsA0 XfOrHT8upStJVkzBwTYapBKdOA+1n1xspyvQ7lSOlwBJe3449zNeV49vMPtl/3OLxRkQ 5Bsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=sy6VZQzT; 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 g12-20020a170902fe0c00b001786a4a4c98si40933plj.371.2022.11.16.21.04.16; Wed, 16 Nov 2022 21:04:28 -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=sy6VZQzT; 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 S234736AbiKQFBK (ORCPT + 91 others); Thu, 17 Nov 2022 00:01:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234598AbiKQFA5 (ORCPT ); Thu, 17 Nov 2022 00:00:57 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9094B3C6F9; Wed, 16 Nov 2022 21:00:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1668661255; x=1700197255; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=RBlLGM0dgrfV1MWsy3HHtoXbOzkM5k1F9BEEOdYJ4QE=; b=sy6VZQzT43NNXWulL/RpCXRvStHAP54SsZ4Gz8TGqsJqskf+8bzW6m3A P92ZOGJV8QQNPmu8Ga9Ib0lkx58uexoU+doVRaUh2AMuFKyBOCk9M5wwn EAMD1ETb+nQMKtBpLG0mr8YmSKdSgHPK8naghhOnBVeDgasBQRLpSkYZL NKTo2ICfy3sBGVIbnwcgvRTdAUrwLB8h1pwvvrDjGqwyEpaP5Qrvaeg8s 16UkxOYnoGF2OQ2EHO2E0oIQv3qCF+g4no6dsTiz0dkzBdFeNIpck/Aiy 6FuUiaGkM6rWEhHJ+bMnog/gkWYAAznsigv0mtzb+r0ZnyU9qQXVYldMA w==; X-IronPort-AV: E=Sophos;i="5.96,169,1665471600"; d="scan'208";a="200162641" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 Nov 2022 22:00:54 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) 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.12; Wed, 16 Nov 2022 22:00:54 -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, 16 Nov 2022 22:00:48 -0700 From: Kumaravel Thiagarajan To: , CC: , , , , , , , , , , , , , , , , Subject: [PATCH v5 tty-next 0/4] 8250: microchip: pci1xxxx: Add driver for the pci1xxxx's quad-uart function Date: Thu, 17 Nov 2022 10:31:22 +0530 Message-ID: <20221117050126.2966714-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, 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 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): 8250: microchip: pci1xxxx: Add driver for quad-uart support. 8250: microchip: pci1xxxx: Add serial8250_pci_setup_port definition in 8250_pcilib.c 8250: microchip: pci1xxxx: Add RS485 support to quad-uart driver 8250: microchip: 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 | 544 ++++++++++++++++++++++++ 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, 628 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