Message ID | 20221110081728.10172-4-sherry.sun@nxp.com |
---|---|
State | New |
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 l7csp16665wru; Thu, 10 Nov 2022 00:22:51 -0800 (PST) X-Google-Smtp-Source: AMsMyM5yd83OjeezOpZbMF7S0SfarLrPgvUGK6TjLIPihDtN1kK1Bndw2GlMDhL0576aJbaPj35+ X-Received: by 2002:a17:907:175a:b0:7ad:d408:3a2b with SMTP id lf26-20020a170907175a00b007add4083a2bmr2442383ejc.280.1668068571290; Thu, 10 Nov 2022 00:22:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668068571; cv=pass; d=google.com; s=arc-20160816; b=LPhcg8N+UsHGkWCG8lY5eD0KnIpG6aZdJ55ByV651Kke8BmWrQrSrYrJYQUCLLXwoB OcW7VYFOss8FJdlMAahrZzWI3cjShx04Jdn1+SZYEjFUqft7OFgXiu7QviKC08SRY8Md EyE6mJKxbghu34TUgIY9ilk629+8KaFIPAIqOhPAhYJNp1R+0uO6EzRrfdkvCVyixV1h Rn2iuyghoqNhy4dBGrgfxbxPXZYvuMX3/qogYLZCDcB/Nc84LAHEW5JL7p3Qw+JQnFOn 4PzhQvdQBeWF+AhYM7hD3AN0dVJJ0o5HkiBJ7D9Su4vqqByWFuEq0d5spG+rlqRpjW1M Kryw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9EjuuTwodrodUQEQw5TynfSdu/nznMkw0PI9L48mWiE=; b=N99mX2tYk0CzkbZJxWLl4NZa/1aWTrf10Ob1+mnFKHzHO7CoJZzoO3AbOq4e47IFmD e/Oq8Cqm+tgnNx5Fh2O295OXeMsrKna/ZzxRB316kZ7x0D+KgJY3QyaF4XqbounaG7V0 sIFv4oG98nneOSp+bDmRi1GJTw/9JzMEk6V3M3CLJnZwcYw4FuwFTroTr4MESlkEneHB que2grEaAWYD0LG+SsPyaN6jwgp1DIDriNNXUn40uIvgV2O1Qu5ZQXDywE/ReDFr9uJr vcltePR+RyCzGcZKAUT7IVSmvINIDGZSmUKB3uIsSmQiv38S64GgO33hLiwKdwyTVzUJ n/6g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=M5ualja9; 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 h1-20020a056402094100b0045d4015cdcesi16726380edz.51.2022.11.10.00.22.27; Thu, 10 Nov 2022 00:22:51 -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=M5ualja9; 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 S232954AbiKJITy (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Thu, 10 Nov 2022 03:19:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232871AbiKJITn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Nov 2022 03:19:43 -0500 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20044.outbound.protection.outlook.com [40.107.2.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A05562CDF1; Thu, 10 Nov 2022 00:19:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wzkz3CAPhqk1Nm/xzDCOuCQkOLQngFbPE42p7X5aZ6LdpGwiDeniHyrmTAn8DN1BcnK6vKA3kn//RLX1VJv/nyZCPeQROrX6aCgNccbLm2wKdxIF9mxPIqzmYIQN3UuCiMb3ao8IojldLrxFelxtfpx8SXsCwrmBykBrdmgzpxVmvsQjRCH6NQCx7Bj2v9jKTVmZ3xX0Of03gJoc/2ZZah5yU+YimYDnWJQqucc9mRabq72+ru0tcQR8i9eti6+B32lZu8VJq9Pyd3yUurWzr+4TLbnLcBwNxv2uDXSPsKdbL//R+Y/sih3qAw4/2mpzv66B1khzjWWSOd7oQSt73Q== 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=9EjuuTwodrodUQEQw5TynfSdu/nznMkw0PI9L48mWiE=; b=hVWoFqrgAtVb5a/HVV3R5NK8i2b+9U5kj5z+Bd1r6U9yKqSP/oSCjUpQ9WATuoDXO1tK5wzZBpbIl0PbX9Y8G920N90pqSzkrsvYLsyAkufMkFzrvBigpADNGwdgIMwtMlH7XWKbTxvS9U8fi/L+MF2qpcVmj45iOGqn/v0s+6W3atYl39pQhunHXVCgQmNTaTYYylfCHfuRPHi68a/oF8E9Kg3My44a9zdxDJrGvWI8zpa6T47sVYBa1WhhiiS2V/VDfFGwxBmCKcyRHIprqQrDuX4WHN6H7Qhc6+7mXrho+JMh3YnOxzfSopOVV15zjQfL+uF0tRI2m86iDTkwjA== 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=9EjuuTwodrodUQEQw5TynfSdu/nznMkw0PI9L48mWiE=; b=M5ualja9UjAtym8AHRIK7vGf4VUonQ8yvmdrzrczvZ0bFZgeE93Ob07Gm3Jd3fufZci49M65PX/12kexAoKy+OxLBSVtDlqqYH8BfS/QS4MgeL5rqBWwPh8o1MAgNHT6AJn1vCk3VC9smBKVL1neoMzU4JvzBo6dKM69kfU8LYU= 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:34 +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:34 +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 3/5] tty: serial: fsl_lpuart: clear UARTMODIR register in lpuart32_shutdown() Date: Thu, 10 Nov 2022 16:17:26 +0800 Message-Id: <20221110081728.10172-4-sherry.sun@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221110081728.10172-1-sherry.sun@nxp.com> References: <20221110081728.10172-1-sherry.sun@nxp.com> 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: e646b902-f2c7-4f83-df96-08dac2f44cac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9lQo/tUfgBM970hFvDUXR0jeWkYjG3T4S2M+HRJTFEiYFFw+V9Bcjw9mT4BIy1PKC9kDmosCBWtf8VrPUUg/Iyu3gs+vM8tVOGuDNqJK/MBhIjkunh8r2pNToFTi7fj1HbSaIS1E2eE4MxT856DbQOhKdzeka0mvs4SwaM9cC3X+HPZBBg+A+3IVbBr9mOR9Gxhe91Fefa3UAann/LEFgFxRRSXjRryHzyJkTK9no7NP1pPIeXo6VhWcvgcX2HJZy1id0JZL/XfNbpnWjpdGwcAlngFFylrnAOQvk+1Vr3n1WpG5wjmnFnCON+tGFHgn7raRo/MNroybcT99ySyraWdaQFBIa3iAad3vcYtzFikQll62qM3+NiLRNihbNkjaSiJiEr8aI+u2ZBh/bH5xGfchS7o5prGakv4LV5/od4Fh0CXg8tT6q6/uMSZ1WTS9IZVTftEKNLwajUbZQ69KEEGlk6RNuNKXP/rmgUEymPGMloUFbm/EXaoILvE4/bsR3m9ASzCObADyLiGlYf+8hwSZaX5PM76akn0ZFLQEFL+Th3cRrPCXEzdfXlhQhJP+Wwu1Izm7KsYio5GNlwMek1fsgY68v3IrMMdroJvtTLSC9OqcQpT6hIrRaICYpa2Z6t0u6531+7BaozGVFRRDirZii0mjRSJKBgtb/Kh52sKBCq8Dt0L4u3o0ecb9ghFOkjvCgTFDDM2NerTm3appXbmv6FsFBQr1Qd0P4RoBwUvQWCeMPoCrKI77fm6LTS79MyZ50UP6tZJDax6Yi9p1iQ== 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);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: UG57a6tGWjoYVbceMVgEgj3oKlRUEIAWP19RVKjWAeByAwveBOpNZGcXGwi1hJzeQmPL6gj67zGeoPVKOLhZxWBptAKl2R0TW52jztCV+Gguz9v9sVKbBx1t4N13pbbca0ZzkMc1Wzq48WWFwGJQwuNANaXuban+07TQKKnotz8xd1vFMCN+/kkxudvM9Ut/8dpSF9KADegTkZ81aHWFIIr5Gk4Fl5oJwgki5K7+cEEwT2u7ZigPT9DfQi/uKN28gqnacIOBHP89z6nUpjEUvW5AxnGoopWxVq1GjY81ZOfggu8ui0nbrsvOCK4GFnljIUCIeyxlaC64fKD8XSOKlMGPYeNv4Znpd9XnONzfIm2dNcvu+LbwzU65YEdcDGXoE7+Yvk99Qdn0ail1OVmSWs38rxE4ERgz/kYjpqy8EplK8pbcxYmQ6QrlBCfmXV69SdqG1mnbnlBsWg9lft68U21nd/XpHOxMrRJ43Mtn1c1q/l6i3o6fA0Q8Uu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h9yht0y0o5bz1/nscwS51 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e646b902-f2c7-4f83-df96-08dac2f44cac 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:34.3365 (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: JzelXD2jU/BKMFImohJPpFuoJFJmWFoCG+0yp0Z3t+cHQKqvEj2tnDjYRKuKZ+Zdx3Q0XxSq3Gtf8HuS3cZIDw== 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?1749096670438999331?= X-GMAIL-MSGID: =?utf-8?q?1749096670438999331?= |
Series |
fsl_lpuart: improve Idle Line Interrupt and registers handle in .shutdown()
|
|
Commit Message
Sherry Sun
Nov. 10, 2022, 8:17 a.m. UTC
UARTMODIR register is configured in lpuart32_set_termios() according to
the termios flags, but nowhere clear it, should clear it when shutdown
the uart port.
Fixes: 380c966c093e ("tty: serial: fsl_lpuart: add 32-bit register interface support")
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
---
Changes in V2:
1. Split one patch into four smaller patches to improve the commit
messages and add Fixes tag as suggested by Ilpo.
---
drivers/tty/serial/fsl_lpuart.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index dbf8cccea105..a6f7b056d57b 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -1775,6 +1775,7 @@ static void lpuart32_shutdown(struct uart_port *port) UARTCTRL_TIE | UARTCTRL_TCIE | UARTCTRL_RIE | UARTCTRL_LOOPS); lpuart32_write(port, temp, UARTCTRL); + lpuart32_write(port, 0, UARTMODIR); spin_unlock_irqrestore(&port->lock, flags);