Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp319843rwb; Fri, 30 Sep 2022 23:40:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FSPAadsTV2hHuy0uWw9Tae6D+E1q6Pgj2B7tlBgC3fntBcqIlY4ORPesq4BqHNn5z3v5e X-Received: by 2002:a63:f305:0:b0:43f:6af:7553 with SMTP id l5-20020a63f305000000b0043f06af7553mr10760747pgh.570.1664606436017; Fri, 30 Sep 2022 23:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664606436; cv=none; d=google.com; s=arc-20160816; b=eqHi0dL9J0CBlMVCY+ZqGUPlNTeNdP6ARBbbrQeKRITBA7Ytz8D1ij23tLNh5DctQY fSvfGQFofou3L/7pUQDXG2AtI4VZA2yZQGZnJB4L2yvWUDuldAGDKK3jSWtTCPY1N6eP tAZZ5IcEHFs+q6I0pf1YrlvZsfK/cK3cTfYu3Yr3UQLlJG1grUooUM67TMEedEmvvlVZ 4kbua2rI0r0ZUlQKsM5JDQE0L2wp13sznUDpOwpz4O9gfw3RkWNqPlR5z8gSyQg22laq yqSUJeW+advSBuvS20hXAAj4p9ajHHZIUUCGQ0JiIv3xi2GY75QzhXnbnaKKCDFy53js plzA== 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=gUzPL1iWa3/FfGkiQeK0V9lp1rLG8GydISas6rOanxc=; b=mNg2+1nByuyNdRBFiTaOzbuDDx2l/EUdiS7+LIOMn9Nr87RY36GmrpEbOy5WSTn7z+ cciQK4jMVgg4wQ0Ex0H85yPpcGLp1anE5em+lkiOv5n5OAJjcgaJcP2apiKYClgzAKi2 Lncg0X7A/bfgOcvG8ENWZhNHE+avIewq4gzYQFftVQyNg/KIOMhKh52mn58kC/81C1uM Li4Skcgxxv/Fpa1/l5LRfsGOW8caqWIVEZx9s0hdZ6IdNZsMfMbqqU5Vd0X1xjHXBdEJ McJZUw5nCtbvqbK1dBVpQiFoj+NsgmFoJNm/5Vu1ILBjL6yNDbzpK1riJoC3y2hy7Lfb MTGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=ncJjwXS0; 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 bn2-20020a056a02030200b0043c9fcccbd9si5411801pgb.685.2022.09.30.23.40.24; Fri, 30 Sep 2022 23:40:36 -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=ncJjwXS0; 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 S229567AbiJAGRi (ORCPT + 99 others); Sat, 1 Oct 2022 02:17:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiJAGRg (ORCPT ); Sat, 1 Oct 2022 02:17:36 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEFD610D67B; Fri, 30 Sep 2022 23:16:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1664605013; x=1696141013; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=dRIqUrYVwtMkvvZEu/bX9DedHrUPU6grLy3XTjixO1Y=; b=ncJjwXS0cZ3H/mOhpV5etnpCwpE5emWwLhmqV7tA1Di8qK4lk5vzdlnK g4cswTYD+7vxDCDDfj1xM9ddc/4obtl/RhZhZN3tfNrOTXNueC3PibU2Q 4Dbph1ax2aQjQpQNUuceygpWLadrO7IBfiiwOnRjtGPlhFbNwkrs31zv+ N/qjsAg4dDH7H9e9ZR0KIxjLj3yAvf4QNnXLVaL9tvt59yx7Knb6DNXCn vLNKmLhSUc6I/NIfb9E/doQQXQu90FmMA9US21omQ+P75wd3V2cYzuOIi 64lBL+kVwVgNTkrzZFbeFJ3ioBQLUjlbB5xiQRd8vPE/LeS88gYkO+GWW Q==; X-IronPort-AV: E=Sophos;i="5.93,360,1654585200"; d="scan'208";a="182901787" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 30 Sep 2022 23:15:04 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) 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; Fri, 30 Sep 2022 23:15:04 -0700 Received: from CHE-LT-UNGSOFTWARE.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 30 Sep 2022 23:14:59 -0700 From: Kumaravel Thiagarajan To: , , , , , , , , , , , , CC: , , Subject: [PATCH v2 tty-next 0/3] 8250: microchip: pci1xxxx: Add driver for the pci1xxxx's quad-uart function. Date: Sat, 1 Oct 2022 11:45:04 +0530 Message-ID: <20221001061507.3508603-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.5 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 are mentioned in each patch in the patchset. Thanks to Andy Shevchenko, Ilpo Jarvinen, Geert Uytterhoeven for their review comments for v1. 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 | 6 + drivers/tty/serial/8250/8250_pci1xxxx.c | 563 ++++++++++++++++++++++++ drivers/tty/serial/8250/8250_port.c | 8 + drivers/tty/serial/8250/Kconfig | 10 + drivers/tty/serial/8250/Makefile | 1 + include/uapi/linux/serial_core.h | 3 + 6 files changed, 591 insertions(+) create mode 100644 drivers/tty/serial/8250/8250_pci1xxxx.c -- 2.25.1