Message ID | 20221110081728.10172-1-sherry.sun@nxp.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 l7csp15766wru; Thu, 10 Nov 2022 00:20:16 -0800 (PST) X-Google-Smtp-Source: AMsMyM7Bgn3td6xyx2jhDfqVMN28O3TFVTMd92W2+ALxMNyw4xdXrG3qy/tNpGeWrah5x9GCRWgc X-Received: by 2002:a17:907:6d0e:b0:7ad:c0d5:ad7a with SMTP id sa14-20020a1709076d0e00b007adc0d5ad7amr54598748ejc.81.1668068416690; Thu, 10 Nov 2022 00:20:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668068416; cv=pass; d=google.com; s=arc-20160816; b=Ye5/U2Kgy/Gq51CO0CCTIy/tqC3owkfuvMQ0qe0qaBOLGbY930KwSDco0mm6whiLoy QYQd6ULOdIdAcmeOV90nvIy40SFh6YK7qhmdLP0si6qR3uQraPdUGJ0q4h8+eEOKPqU1 OZ+e4Cwh4mE3l2VvRWehwJV6cSGPVnFEHq2RRxRc3R1j8VTbveG9gkvjwwPn/m/TzMb8 9BFKl5uRRPF9lMCoJjOGr3vhZhXxANW8akoCBoeRUm9T1+nbYNoAO8hjAzFaaeeUU91Y sF6+LsOF4qNOM69fp79QVvC1wCM50BR9J500u2HYiJnhbLRDbWz0W1Mb71DxWf3DtjPo R2gw== 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=IpN65ttr+LuYJR352BwpbxLf08fKrTjh3TB7w/nWpsE=; b=gpmKVJkX0kvQ1OzVut7hmOIsirW/1heMiT2rJeO8dK79nxfrhazFoMHP+8+nXnaQxq n4OBUlbs4LR0xPn2C7gYpgaiO6gz//Gi/q11tQ71GF61ZiT4s7My4sve4mkbHzypFXqR 6O4r+LA33vfOOFvvAIp+3k1xx33wgt0xfOyIJzQxs1bDFevb+EY8aeFob9fheLu3++F3 2bd+U/ybijvTs0DJHjT1CTHd+8IBgPBTEnBD9p4j4bNV7Dtfl1bz96ThJlHQntrFrjYP BerFUfK+p63vi+8HZeBLjrynOK1+NcU4Qh/fA2O3Bgg/P02sNQyfDg6tCdN0dH9yB7xz k53w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=nrsb5YSj; 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 m26-20020aa7c49a000000b0045ca6518751si15665707edq.204.2022.11.10.00.19.51; Thu, 10 Nov 2022 00:20:16 -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=nrsb5YSj; 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 S232740AbiKJITW (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Thu, 10 Nov 2022 03:19:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232667AbiKJITV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Nov 2022 03:19:21 -0500 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20068.outbound.protection.outlook.com [40.107.2.68]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DAA01F2C9; Thu, 10 Nov 2022 00:19:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LgSzxPsLwOkbHzgnwnpoORmWHkprbGkjuA3eXJ7hSI5c8VYB8zY+XqyJtstzTl7hp55ojRMoqFXuVG0qyGgv9lbdN2Lhtp3OBh4seHzEMy7Bq1CJ7YwYpVV1QDwFbwmCmgM4CEKXFHbvrrMawni56JpliZrmRNK9qSpzFO5VJHHSca2ypJ4q5cmURWiXCOIjlibmkWt7Pi88XbL+5KDCg4Z4QcTfTcmoUqDfa7HT9lY1ZnA3WAFYmsqEBBbjtZCJjDrAQK0/B1uxGwMmlOe9uD6EkJiTXI374s3F/KDwA1EHldQXM8Lbrw/i1zXZbvZZ/0d7tke7CV7BZS7xPzbbHg== 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=IpN65ttr+LuYJR352BwpbxLf08fKrTjh3TB7w/nWpsE=; b=TMZJ4hXG4A0dTwfJbqI/i7LKTrgTCIhdIuca0ZbHTG3EUaS7et1MTQllzhqKc5YI3Dj+ly/te9C4HQi/+GgGfcfgLHYkKQP49vLmRlJPM1p2VUFfaX4rebWjEGvAZQbCqAYrCO8MXIpuWony5TzBksX3QsvlaplVlQrgH62LMeXAPDfqP0jLrpo49wNSQSfOw93OUCKaVVXgC+3v3MUwa85BEPcocEpQi2YMxwYBF06gUNKzbDJvdzgRaA8CDKgpcsT/FtJ9sRIQnugNsTs46vOHM+cv1gh3srM0Q2QcYbs0eAahqWRdfnpuMq+Ph/PSRyPEYxq2CAzzXhrYCHMgEA== 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=IpN65ttr+LuYJR352BwpbxLf08fKrTjh3TB7w/nWpsE=; b=nrsb5YSj99HNZnCOf1fS7Mf6jJNe2W0kT2wFckI9bpPB9H/jYZG4pxHI1t7wIIh21TpSOCGNVHvxvlLbUWj/xFMcYL6HEzRQXLXFE/AVZ3CDOIJdl60pJJrn4lJs2wmdVEGq1zBMILiSDm4++XGnQPnuo24pkPgQj1ulIOxzzVU= 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 AS8PR04MB8916.eurprd04.prod.outlook.com (2603:10a6:20b:42f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.24; Thu, 10 Nov 2022 08:19:17 +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; Thu, 10 Nov 2022 08:19:17 +0000 From: Sherry Sun <sherry.sun@nxp.com> To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: michael@walle.cc, jingchang.lu@freescale.com, tomonori.sakita@sord.co.jp, atsushi.nemoto@sord.co.jp, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH V2 0/5] fsl_lpuart: improve Idle Line Interrupt and registers handle in .shutdown() Date: Thu, 10 Nov 2022 16:17:23 +0800 Message-Id: <20221110081728.10172-1-sherry.sun@nxp.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0022.apcprd02.prod.outlook.com (2603:1096:4:195::23) To AS8PR04MB8404.eurprd04.prod.outlook.com (2603:10a6:20b:3f8::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8404:EE_|AS8PR04MB8916:EE_ X-MS-Office365-Filtering-Correlation-Id: c11ecd86-bb58-435d-86d4-08dac2f44257 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Mp/tA+0Y5vU/38g8fEjLbRaigqolGAG8WYGHuknzFinW4nyJXKxp08SP7pHAkzmROQZGXBlycFIpSsMPkrxGlMehT2JFJ4M2JYYdGwOZu8Na53QM3b1it7Ml0/JrdWChShkXRBGy7RGD2nCRvWLBUa5wF+wA+yEbh94etAVsHuIsMXsvRP7ivVPH6KFysn9TuQUIG7GhsfTjG6bGoxTGJD+BVngjjJoSNWM2w+TU68y5/g7xV5shHwzuw7WIcWdDi5w1KxmVRhrOiA8hJpzGgb6wO/mHHYfYVH1Zpqn4vezzw8mt6neneiyVqnvaLuqkJATtFkBmAommY3MlEi3WCXRo/ZVdKIZsshnvt7eYb9yQQvhPG3vLfiRURjJgync9Haed4LVumDVrx7S/FmQRME47OfhPJ5t7D5xxQFazydUvuJyvk4U7k5FNhflQ9ffwLgI1JKPUZv2tYU5tV8DZznULjoFImuNO1F4uJGjdGWefHesCvKW3TgKD5CRbRfXUe6npkr+8xj+qis92c+2FkgI/TTHE88CpyhVxVEuEHKt1gxI/AW/mbmjZYUqD+ImJ5c+2uMIHxo625MpwNy3saA156m3eMCy1g1cH7kh8+lBZFvupKSu1ITvXl4MNKOzB+ZuuemrIrV0QnX4YEVzIT0sPW4vICQW55i2uJ/nRp2cK6GvXcc3w9acBLoWykVUe/dfg+nezDOYZusoeWUO0O8US8gEP4GWXg7wabkjIxjqLyTAuRKoa3bV5Hx1tRj/dNGgohUogPpcQhVgnwWFtkPrVp4fol8zku4uTppSuRt4= 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)(396003)(346002)(366004)(136003)(376002)(39860400002)(451199015)(6506007)(38100700002)(38350700002)(36756003)(86362001)(26005)(2906002)(478600001)(6666004)(186003)(41300700001)(6512007)(316002)(66476007)(6486002)(44832011)(66556008)(4744005)(83380400001)(66946007)(8936002)(2616005)(1076003)(52116002)(8676002)(5660300002)(4326008)(142923001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0sk+KnVb6m+qZWgKnHasmVrRLjb7AUPCE6kr8/Kp5SeLx/CtxlBTrrdwdljYvc0nvCRffE3r7ehcShRct0Rsl88k7Q8x/jIToGAVx/SOzBQNuTwUf/GAmc1M0q87HbBaLCqfjlBMuJ8lHY4pVsUyEGtVihCg9Oe+EjjaKd6U63JzcaUMdsyS9XSbGI9KzAb7wy9SNMy5V3l28m7aQVswkwho/GdeYce+pWXOaxuVIK3fNYzs7NEfK7oxyQHzNoi0ABfBba6QbTXosfksIkXsUE+tA9v5SftF/pZvUmyjFKp7sN+i36sc0k/YXxoB7wRWwd4dnyE/YUw/DRF9dSZu8oA3eUMrjEQ3MFP6V7+EhW24ZiVwabWc6TewjusHVgzwuW3r4g9MfE0kTPVLcshFLClcioiMdFhYg0tr7JbMuH7bkjycIT167nSwGqo1LGxHtKjoeeH0kanSet7D2UaYcKG3eG/TnrgX7d4x2QnD58+yDFzkBS1Yu6tvj8sJ0SVwa3y9+Glhrimr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riginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c11ecd86-bb58-435d-86d4-08dac2f44257 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8404.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2022 08:19:17.0780 (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: XIggexyFUINxoFGXo8RA13VRAooAzW/lTh7hbcWnBcq8Ib+PVWCh9hvBCkPvN4/ZVeYc42iTJ5mCg4kGf4keZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8916 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: <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?1749096508256999995?= X-GMAIL-MSGID: =?utf-8?q?1749096508256999995?= |
Series |
fsl_lpuart: improve Idle Line Interrupt and registers handle in .shutdown()
|
|
Message
Sherry Sun
Nov. 10, 2022, 8:17 a.m. UTC
The patchset improve the Idle Line Interrupt for lpuart driver, also handle the registers correctly for lpuart32 when closing the uart port. Patches have been tested on imx8ulp-evk platform. Sherry Sun (5): tty: serial: fsl_lpuart: only enable Idle Line Interrupt for non-dma case tty: serial: fsl_lpuart: clear UARTCTRL_LOOPS in lpuart32_shutdown() tty: serial: fsl_lpuart: clear UARTMODIR register in lpuart32_shutdown() tty: serial: fsl_lpuart: disable Rx/Tx DMA in lpuart32_shutdown() tty: serial: fsl_lpuart: clear LPUART Status Register in lpuart32_shutdown() drivers/tty/serial/fsl_lpuart.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-)