From patchwork Wed Nov 9 10:56:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sherry Sun X-Patchwork-Id: 623298 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD419C4332F for ; Wed, 9 Nov 2022 10:59:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbiKIK7F (ORCPT ); Wed, 9 Nov 2022 05:59:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbiKIK7E (ORCPT ); Wed, 9 Nov 2022 05:59:04 -0500 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2083.outbound.protection.outlook.com [40.107.21.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5634F11C0F; Wed, 9 Nov 2022 02:59:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n4BEnm2buFnR4cod1QjxRCHkM9HoS0JZkzUBdqQlVAuK/ctS2d2dcBrrfieroCiGfolUx8EAmQI9yxEk937Em32mX+bQ1JswrG73XY6z9dvFnl95O/PhnFm0gjIwusNnLIx4FTwIbKA2hmPaAkyBIgkaFDthGpqS3MLRq/k/IZa18+hjmp6J81bPrJNgwyRk8zvpiaEALnUuYvjdnCuEBBbK3MEDsvVwrS9eHQwRh2s7wA6mfhqPa0it6m/DzuK6idfZIRiwSC++3Zk3aZtCgZSLUqtUxca2fSdw1fHlhm+0MS9muB2lMnQjT8rdJHIYlfL9Vz7+xsLVQxMfhwHFAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=e5jXOUfwY+INb9UGVvuCTHIgBkCUIWemOx1oNL82udg=; b=GcTAhfRL2OOA/CLNebaB/qIbWw4arIcITHMfNtslsvknMb7nDa51Sp/wFH2R4DJ4fa01fMf/tJplQDVK8/ONJG4eUV75bgtkuikhtZNulJQ50Px/C+cGnmqBbMqCQvtsZX3pMD8x8fCaNN5oU+NjqoLHfgItq8O2Wfmr2vHAyVtmB1WXgNF2uoH9FusAgT4j2CVVIITLLBCART01tgA87mSzUjIyiRZhGWi9C+tnBw6k2hMIJTLEWp6LYWYAsZOheoLM24faT9zvq4bbvqveJ36WYnxDf5YRtjgLEuaTkxqagIEpvZ0wd70eOWdUC6hRMacngKiB0LRb2mtmdp3i8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e5jXOUfwY+INb9UGVvuCTHIgBkCUIWemOx1oNL82udg=; b=a7eb329NfSpGyQhVO2FtzsmWDsxuiM7ND0alyWl4CtfUwdzYL9xhnqnJyVbe9DyZns3Xb4w/C0FonRJbdEMgQnqvnyx97hdDicejbN9xoaB613hJ/dYdPMs41rjPGrUuKu1qDtcpvIk4pk1RSA4WgecIiC7mhL0m+b+vjT/YD+8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8404.eurprd04.prod.outlook.com (2603:10a6:20b:3f8::7) by AS8PR04MB8515.eurprd04.prod.outlook.com (2603:10a6:20b:342::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.20; Wed, 9 Nov 2022 10:59:00 +0000 Received: from AS8PR04MB8404.eurprd04.prod.outlook.com ([fe80::71f1:f7bb:5039:e55d]) by AS8PR04MB8404.eurprd04.prod.outlook.com ([fe80::71f1:f7bb:5039:e55d%3]) with mapi id 15.20.5791.027; Wed, 9 Nov 2022 10:59:00 +0000 From: Sherry Sun To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH 0/2] fsl_lpuart: add some new features for lpuart driver Date: Wed, 9 Nov 2022 18:56:57 +0800 Message-Id: <20221109105659.17381-1-sherry.sun@nxp.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SI2PR01CA0034.apcprd01.prod.exchangelabs.com (2603:1096:4:192::9) To AS8PR04MB8404.eurprd04.prod.outlook.com (2603:10a6:20b:3f8::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8404:EE_|AS8PR04MB8515:EE_ X-MS-Office365-Filtering-Correlation-Id: 17388d5b-c9e8-4897-6ac9-08dac2416808 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +gK9hosx5KXQqACmXvm9d4xEmkwBNODBwO99UMbpO43pQscz9lPvKB0g0U/rBGXjvdqUuWvE1PD4/x5dZ0/0yf7NVEbtg8Ujr/7vUv6ORvB7qr7uCbO3JL1zbVRGR+akqjYpwHRhrU9Q21qj5OJ3tC1bi4Ku8mlpaRkgmkiZMmEwiX4rMC8mzY5fVp9bmeOKbWi+ILDI+RkuhaTxsqT9H9FwlFJ+nOIKvdCjU+Ffjcn2LHxMXJ3uqs1EkopMD1MfUk1f4MXyPKGNAdh2zfmGwt+eSLWqpfxe/68iIC9cr3zyshQ9A5G/6WYN1gIwbznVrTBFiTedp4MoGIvWfACJUcRhf9mRqX83JrNzpqe5cIzbzF3gu1Rnk4X8gQw7c/jp8/nP+1jMBg+HBYQNHm38AxWKhlHiCV70kRHnMYrgCfEzKK9Tr+FhBzIVIf65PmoaK+TQ7JEVYiur/oJprtZlgHHBCTr1PODGCHjnFRl34osOLmS3o0NPgwxUhHBWr/amCVf7TGzo6a/mKTNJySqGUBZmziBuwqL7Z2TgjxbCDXaRcYTQGOfOefqZNgwf0K/O9H0lPfAJq7FoxoyNELP0PLrgMGafQonkU4ti9O33dhOGbYTan3AUgPPX2my6bYWzFwMJQa1flp7T0fAVu6ZI7a9BSrEBydh+Evvvv9xeznOQsRf7iY1vvZrT9Nt+Gvu7tewA1/hvcLtpZUxCX2A1g+BtCMyb1e4wAlPyGcSW8B6m9gCgcg6v7DEsmWnLTDd4nBg8zGUYwRROZeyODxXgGg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8404.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(346002)(39860400002)(366004)(376002)(396003)(136003)(451199015)(36756003)(86362001)(4743002)(4744005)(44832011)(5660300002)(52116002)(2906002)(26005)(6512007)(83380400001)(38350700002)(38100700002)(1076003)(2616005)(6506007)(186003)(66946007)(66556008)(66476007)(316002)(478600001)(41300700001)(4326008)(8936002)(6666004)(6486002)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 158ic8zzoC0Gh8BW2EpgUqHOiyXDOUliX4jEZh4QqOie/LemPRpmxl/cQjbpsx4QRc5FIr7RaVPI5lQeXH/gg9zziCkjZ6cI3cJ8U040IaicAVMzfY8gty+IaMZIHOkkfwQleMbKh0LsbEXHA204+Xskl40qd10l5EiSzoczwkMxtSqFLewjWy0tKKq+gW6gav+LEZfFjum891B8W2g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iM1SsoFmIT+4t5AP+oZXOJXFvGIAkcvTlZMbDLnvkx6/x1YUeb7UhY5lrfwXUhwR4NbJYcFUEqgTcTs94GfkcD5qZ5IZXDVWR0JzUqaCbmd11Sn3fDqkIH/Nn8ApNE/DNVW4RIzBl7u88HqHCyXT7yZ4yTZkfWmRrRVA6dJP8vzr6eNCPX6nMAKzj9o+LuyVL9Fd4nzzpWk9O4CfIr/rRIEDwf9AIa7oOvDdqKxloZH+rfK3zAYz2p3mQN33LqxLlrQgMrX0/cI4WoBPOBsaBkeK1Go7za7x5gcu5kC1G X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17388d5b-c9e8-4897-6ac9-08dac2416808 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8404.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2022 10:59:00.8840 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CrF8HG2dP9ZNOBY8fvL5syaTTnqNWkrVC0smM03VjbbxtUVwhUh6g8MoivV+W5tdsGowrX2Dxms96fsBMlnH6Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8515 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org The patches have added the wakeup source support for lpuart, also enable the runtime pm for lpuart driver, it has been tested on imx8ulp-evk board, and the two new features can work well. Sherry Sun (2): tty: serial: fsl_lpuart: enable wakeup source for lpuart tty: serial: fsl_lpuart: Add runtime pm support drivers/tty/serial/fsl_lpuart.c | 341 ++++++++++++++++++++++++-------- 1 file changed, 260 insertions(+), 81 deletions(-)