Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4516129rwe; Tue, 30 Aug 2022 11:30:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR6zhMEcKHEFuQRxUYYahrQmZncI4KMWcuDq1cNhb7AfJkyFfht/MMh9iVmK+0QUOM9kRxzq X-Received: by 2002:a17:907:1ca9:b0:741:4f9a:5984 with SMTP id nb41-20020a1709071ca900b007414f9a5984mr10736050ejc.86.1661884235486; Tue, 30 Aug 2022 11:30:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661884235; cv=none; d=google.com; s=arc-20160816; b=0o/3OT9WSF3WmFd77fH4Ea3BBPjD5z02M8IgVbmx5TR3nMkvAfpzw/rWZ8h5ecodQE CGMao3hhc2J97sMtGkiMnKjOOtttogPl+OFYBnogCMcG0j03JCPleGuNVuXJHFk864SG S2xL0NwxEwZ0lu+n6ll0A/Fvt3ziqgWWEiG1DaLPR17rsNidtvTeWMMT066S5V+WS5+p MwMSfjAOxvVBjIRDlj0xhK03RmMEQj11IXRy5noZY8m4y4Lm3JdDFDPcX14g2YWbysaf +VwFTlNUKlXVyPMGc1s6L6khzNk0Qfg6PSOTKrg8kcbROmxCdwhAOYwrq6noNYmOL831 jONg== 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=4olJbTnnNDnSKXQ6gxNOmi2nYBUZK/zw433/+oQ2QL4=; b=ZUN/B02uDT33xUTbIL2Fhi735U0PetgurnVQQGkCJ/b4d85o6SBckAU5KwyF6RjGz4 /FD7H+u64uNqgQVzAxu72hDiCP81vtpNM5I6dtDCSZ04wJWwk4CQo2aiU3uwN+JwzDiU TW8fj8yROjSCV3NTveMqDLHszyWnQp3FKiE7fRrT1tRgx1X5Ew1yk/wq6EK7sRuxsagM VAMHTbh30Z/ccV7Kx9a5M7N+44oK2gRm4uri3KxJxWOj38OrBvkDCgDmNxnlFdToe+iG AqjDhazEK5ImsGHI6lVOXJr44xMXhhqu+PNxaagfBYSAOvby4OokHbzmhewWnn6aunU2 ukUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="E//fKxXC"; 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 ji17-20020a170907981100b0073d626e2ef8si10875754ejc.461.2022.08.30.11.30.08; Tue, 30 Aug 2022 11:30:35 -0700 (PDT) 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="E//fKxXC"; 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 S231345AbiH3SBp (ORCPT + 99 others); Tue, 30 Aug 2022 14:01:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbiH3SBV (ORCPT ); Tue, 30 Aug 2022 14:01:21 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDABF83F0F; Tue, 30 Aug 2022 11:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1661882481; x=1693418481; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=S+0sT1gSA5uP8yZcYX5e+6AIBTfIqLir8Zo9XeEUKpM=; b=E//fKxXC4SIvpXisNuwLpN0VcET07GI+UFPINmFX6Tbid+oE5yrfs4OW WVpAzTDENNDnnB+oUPV12Kelr2E39tpLjsh3Iq+xyzhNJQIUKmsn6vEBW oN9dfgpPXfTerhk25iKQR0x4IBSiy6hHns2Jx3e9ykKbjGKTUvxrNF9R+ p/B7xMdfpfIg2dAK0Sexyac8kQpPl/KOTPerG5f1yqM0IaoQhbRhWYQk4 fCXRY3KHK4RlQysmLW2xa7ajMLKhva2mk+bq0yZk11BfYVDQS88vie1sf 26YwUVD6Hxv9NFmEPIX8qbN4QaR3tcsY0sVfz1VEQeWGF1qdlNeTbd+Fp A==; X-IronPort-AV: E=Sophos;i="5.93,275,1654585200"; d="scan'208";a="178360180" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 30 Aug 2022 11:01:16 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) 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; Tue, 30 Aug 2022 11:01:15 -0700 Received: from CHE-LT-UNGSOFTWARE.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Tue, 30 Aug 2022 11:01:09 -0700 From: Kumaravel Thiagarajan To: , , , , , , , , , , , , CC: , , Subject: [PATCH v1 tty-next 0/2] 8250: microchip: pci1xxxx: Add driver for the pci1xxxx's quad-uart function. Date: Tue, 30 Aug 2022 23:30:52 +0530 Message-ID: <20220830180054.1998296-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,T_SCC_BODY_TEXT_LINE 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. Kumaravel Thiagarajan (2): 8250: microchip: pci1xxxx: Add driver for the quad-uart function in the multi-function endpoint of pci1xxxx device. 8250: microchip: pci1xxxx: Add power management functions to pci1xxxx's quad-uart driver. MAINTAINERS | 6 + drivers/tty/serial/8250/8250_pci1xxxx.c | 585 ++++++++++++++++++++++++ drivers/tty/serial/8250/8250_port.c | 8 + drivers/tty/serial/8250/Kconfig | 9 + drivers/tty/serial/8250/Makefile | 1 + include/uapi/linux/serial_core.h | 3 + 6 files changed, 612 insertions(+) create mode 100644 drivers/tty/serial/8250/8250_pci1xxxx.c -- 2.25.1