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: 1384 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp267582wru; Wed, 9 Nov 2022 03:00:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ayeGY+Kj/z2cZ3ss9Zsr6esxjzbZ/cCslki6rPFb14YB27M87Rfo3Y7lTDq9Hr7sXn8dk X-Received: by 2002:a17:906:e1b:b0:7ae:6e4b:6c0d with SMTP id l27-20020a1709060e1b00b007ae6e4b6c0dmr11915004eji.98.1667991654285; Wed, 09 Nov 2022 03:00:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667991654; cv=pass; d=google.com; s=arc-20160816; b=YtktmS2z58D9/tZzgI0JkiDStrVMfLEgPxu2ku99qHOHh6LjuZ7Qw/J8jSTP6jXNgR pNJz/X5CdDwL4CTEjW2SuiIZxUixdVxqlHDmlV6e+zn6BNitZT8PvWH3+t8FGC53zxy8 i5BwIIH3wHdNNp0oehpL1K9TZKT4HFtTTG2TUeywxt1FqtDLQRy6qhlHixJGMMkT/fN0 jIizhLBoJdYdhHMDJP9Ysmo+wY2VJKVa8gXo5ddjKfRRxij2mQ8OF+pfhUfhBHhXkjVf nj44rCAZGubvhBrIc/GzhiH4obVdE3Egv2vLU77yg5+IW9cGBaD3wGEsi02KJvE71Rwq RFDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=e5jXOUfwY+INb9UGVvuCTHIgBkCUIWemOx1oNL82udg=; b=SBGf/QQ+BUrjlJ206MUe0XvEfMNXFPAUEwq7KgCFD16iOIPCN5QkVfk8H/lU0fTdiL W/XQgCMkdlLZaVLwPYf//4j9emtuOE9t2SEvSRVGNqD/eJarSajzviKlbRXQK8PvKkAX lsf6mCDtlrtWt0DkSRi0m0BQWeVaocqpt++/btRz06nAJX3e4zZidtS/Ee2T49CvpKh0 IhHhZ8bGQaO6aE5+0b6652evKHls3skcZpHQB0igyPcxH24IccJvpRo4/ZQuFzMokIia WJsXWE/IJFgcOpqUrei35bFJ//Ug78Yvy1eeoaeUrqPX2I5oxHYu7CCuLxj18kpuZgbu PUWA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=a7eb329N; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga11-20020a1709070c0b00b00732fa9d3df0si17199859ejc.795.2022.11.09.03.00.29; Wed, 09 Nov 2022 03:00:54 -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=@nxp.com header.s=selector2 header.b=a7eb329N; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229690AbiKIK7G (ORCPT + 99 others); Wed, 9 Nov 2022 05:59:06 -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+LEZfFjum891B8W2gRQRK9MskdXwoMPmWPz2LlwfSTw6WgfFZMjIitp0+S6ddp7bQHAixJRYMw18jGAtZfaTO+prP0JfICJOrpWuvSMFjofiS88N/STfMqpeu44kdI3b01ZmVRCPbL86H4rEpp2hD5VO9+D4qYmlNBgYkft1c6Ru4vM1QLXN4FBegDdriO+f33vOG6vSDA+Z1GFOXhlWEEaPALj0yczp+A6gULCA1fd7SinDNgELWqEVy7J/dE5DTKtU+dzK3tqyCdTkurGKzpFMSOa6GMvJbwco5n8MnDw1xu/qkeJCCI7Q5utcy87cyI3y8UmrytwksR1s4Am27lX94MBfcaxvb4hxXujZmbyUN9beOQ0SGEeWQykl/POpt2V5ig+lOUeundPdMvpt2lgGMS2ws9OPUsidQ2bbGWtXJJHM6vAGxk+iQfo4XzWFySdPdsWQ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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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749016016611362520?= X-GMAIL-MSGID: =?utf-8?q?1749016016611362520?= 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(-)