[v4,tty-next,0/3] 8250: microchip: pci1xxxx: Add driver for the pci1xxxx's quad-uart function
Message ID | 20221111161130.2043882-1-kumaravel.thiagarajan@microchip.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp837828wru; Fri, 11 Nov 2022 08:19:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf4rjtxip/KYBixn2VuWAqZBFEp+mVeHCjxyodvPdoGuHgs6MDayL/6jE/XN/3dPIgZrQq9E X-Received: by 2002:a63:1666:0:b0:46f:9763:a37b with SMTP id 38-20020a631666000000b0046f9763a37bmr2327207pgw.177.1668183572021; Fri, 11 Nov 2022 08:19:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668183572; cv=none; d=google.com; s=arc-20160816; b=iWjeAgzeYEPEcQaWURZJWuDHd8SlQWQoeATd+vYbD47nEVMHmgO2ZlBIFg70XJQ7HT ouFv4vX3w0IIh7ZgqoT6raulLY7u9EHJTgyBAM3A+coHaa5kiqM8JeGKfk8CTC/R3EMe wvudZSosHe7En4nMYksGZ+xExAuC0Z1YHzHe8ZRWqtpWhBEqPO9xaSMxslKvTKTxzM41 khUq5cL3tLueg6pA/pDtHDziZBiI1KPEeViRyygWVoRwpMoQc0VBO6EmAwz9JOKpp5I8 1ooNpij0eg7H/wCgIBK3zXC1OcW/IvmvVUMd2YGd7wfcjQAP6AX6dDmejtFnAETDH/Xv /vtQ== 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=IJnTtFAVQVWIT4UGWr+MKQXHeF/cDB7LiZNOINh4HEY=; b=SunSST1AIIS+w7UMZjwsmYD2WaLVznRp0/5KoRyX2JUbDJV8JYW3x+rmnH78L3Smd6 yddBV9ZQjlshSIwcNoE1NrpDhiiuu+BhG6twt4oJmyeEa/nhB7sVuONkk6gJEaNgGWYo W+PxMjXmth7MTqCKPcGGpyasgyz8hGCRr9e8dlKa+CGR1hSxQnPDFJ7Yt5gG8Y5lYGQq RtBWg9rnrNR0x4TwXJxPyxvfCEqYOtEbiKyTIaLcM/Y6vsLmsMhy9haG7NN8YgOIy0ut uavYRSouzw3JpBBZlDlOebRXaUjJl4SBAqmbKhBQGVaMYzou/67fHab3PesTYVyvDrmn JI8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=tXDauwKH; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u7-20020a170902e5c700b001748ede4e05si3267697plf.119.2022.11.11.08.19.17; Fri, 11 Nov 2022 08:19:32 -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=tXDauwKH; 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 S233865AbiKKQLI (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Fri, 11 Nov 2022 11:11:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbiKKQLH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Nov 2022 11:11:07 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ED65F5B2; Fri, 11 Nov 2022 08:11:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1668183065; x=1699719065; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Kmc8i17raTrE43RZ874eLzh3n+igMYXFyGNItktzJzY=; b=tXDauwKH0HRhYNzpvvyuwjGl1UiyHkc222waYEgXysOMk96BeLqxbLxM k9F45nOXBEudpr4l9xRDMhdyh3gee3GWUor8DLPcchkXCDrVY2CQuu19g x0CWXWIpWCLWYxlL7hJL8+rsj0I12B8+laGFQ0VErfbUCa9makqPOw+0w L63CzGeFLeTDKevHGk5G+AfMkGOlw5vnYN7zJa3jKImfsA8gUyjb0lc4d E/iky6cjTDLcUy5irvLXnf+1E81WPhwMyQn96e+sT57PZh8BElTs1f/Lk kLBjKK980j/J6YMg1oiDY5Sh9S+adDD5TYk7uevjnYagb0t+7t51qFw9n w==; X-IronPort-AV: E=Sophos;i="5.96,156,1665471600"; d="scan'208";a="123027573" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Nov 2022 09:11:03 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Fri, 11 Nov 2022 09:11:01 -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.12 via Frontend Transport; Fri, 11 Nov 2022 09:10:55 -0700 From: Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com> To: <linux-kernel@vger.kernel.org>, <linux-serial@vger.kernel.org> CC: <gregkh@linuxfoundation.org>, <jirislaby@kernel.org>, <andriy.shevchenko@linux.intel.com>, <ilpo.jarvinen@linux.intel.com>, <macro@orcam.me.uk>, <jay.dolan@accesio.com>, <cang1@live.co.uk>, <u.kleine-koenig@pengutronix.de>, <wander@redhat.com>, <etremblay@distech-controls.com>, <jk@ozlabs.org>, <biju.das.jz@bp.renesas.com>, <geert+renesas@glider.be>, <phil.edworthy@renesas.com>, <lukas@wunner.de>, <UNGLinuxDriver@microchip.com> Subject: [PATCH v4 tty-next 0/3] 8250: microchip: pci1xxxx: Add driver for the pci1xxxx's quad-uart function Date: Fri, 11 Nov 2022 21:41:27 +0530 Message-ID: <20221111161130.2043882-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749217257333976905?= X-GMAIL-MSGID: =?utf-8?q?1749217257333976905?= |
Series |
8250: microchip: pci1xxxx: Add driver for the pci1xxxx's quad-uart function
|
|
Message
Kumaravel Thiagarajan
Nov. 11, 2022, 4:11 p.m. UTC
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 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 (3): 8250: microchip: pci1xxxx: Add driver for quad-uart support. 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 | 536 ++++++++++++++++++++++++ drivers/tty/serial/8250/8250_pcilib.c | 34 ++ drivers/tty/serial/8250/8250_pcilib.h | 5 + 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, 612 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