From patchwork Mon Jan 30 06:44:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sherry Sun X-Patchwork-Id: 648888 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 E7718C54EAA for ; Mon, 30 Jan 2023 06:47:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231161AbjA3Gro (ORCPT ); Mon, 30 Jan 2023 01:47:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235623AbjA3Grn (ORCPT ); Mon, 30 Jan 2023 01:47:43 -0500 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2072.outbound.protection.outlook.com [40.107.7.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 906CA16335; Sun, 29 Jan 2023 22:47:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PLnHRXeH5i3SWs9k7wg9QkbQIn+D9g1rAa8yWciWVZema+tlGXbuiR3Hx2LCC8831BjgRIFh4jTBT4oP/f/cB4X7BXYSLLJC33KB4+OPsIZER3/xQ0aGIu8TcKZZRK5/5LUkvP0e0aGFDW1LLDLoxx2GPrbmzUDH8epgsSCqp3Q3cb30jil0sQmhd3O6xF92O5k1Z8/aPIdkBVG9f8FNUsxp4KWhQJSaA3NKLCihuLcNVvx6KAH0EJeSQq0yj9mTet0i6ZvW/pWdQj4r+sQlnD3NLaC0bU0gwhU/n5o66m10st944F+rfnLTcMGS/GfXlSALq3KObkVhtG23z7nuyg== 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=b/wnbMquvz8qH1WLQr4U66ejI7/J5tcEUwkZYXVgTWY=; b=EEyX7bmSc965K13cBMZceylkRN2gPAACmXgiFDVoBcCHN0v6z6uldNAuvGdZd8LhZ+eesLCuN9Gf3uDj8WqoHLjfY2z6SueFgf1OSUB+a5DXlBtcNox8ds7y5EG6BIjy/BGqiuZWU57FT6x581XQKgjIKAeXAKs5UFJ/XFr468Mcgs1blrKl9wq3tzRf1zM4l+W/g9md8ZWrMQM+YMrHX6A55eSZl6nvgS+LNHYTPr/RCxHFqX67glq3aWx4YPPe+QOl/f7TlPgUE24JHKA5pf5/igh7dbHN1YcE76DWgN97KOE2U2e+Ty24MzafScUnFk0CfaRjY6sWLMKT6t2IPQ== 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=b/wnbMquvz8qH1WLQr4U66ejI7/J5tcEUwkZYXVgTWY=; b=R9JoX312iv1q/UoLun5kpOTZ6Rc8wudI46SooD0ZRIu/uwAOT8400VZx1sADuoiWcZ434zXvAz5Z0die3FBPnqmqoBqQMev1aK7t/OdIS1hKqRnmkg4EOOzsCdjfJw3UI8OvDoDoyJV9FxdIklHZDLnc/7eTeK9z1dtJB0aShig= 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 PR3PR04MB7289.eurprd04.prod.outlook.com (2603:10a6:102:8a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.33; Mon, 30 Jan 2023 06:47:22 +0000 Received: from AS8PR04MB8404.eurprd04.prod.outlook.com ([fe80::7f24:bc0a:acd4:b13f]) by AS8PR04MB8404.eurprd04.prod.outlook.com ([fe80::7f24:bc0a:acd4:b13f%9]) with mapi id 15.20.6043.036; Mon, 30 Jan 2023 06:47:22 +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/6] tty: serial: fsl_lpuart: improve RXWATER setting and add imx8ulp support Date: Mon, 30 Jan 2023 14:44:43 +0800 Message-Id: <20230130064449.9564-1-sherry.sun@nxp.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SI2PR02CA0002.apcprd02.prod.outlook.com (2603:1096:4:194::22) To AS8PR04MB8404.eurprd04.prod.outlook.com (2603:10a6:20b:3f8::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8404:EE_|PR3PR04MB7289:EE_ X-MS-Office365-Filtering-Correlation-Id: aa200c9a-c08e-43d8-3292-08db028dd6a3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QFnRkEg3bcfr61oo7jeYraciUzy6V7KYGy+lghuLiatIOJzz3YrrEexwfUDzDEH7jR1AXJFmAP6I9O/3aQKOQbN978fTCV00f0e4htieHs01+clyO6sAtL6LjmUkFhOzuGOEHu1PWu8LnvJNh+xyxD+YkQgQQ9KiVTzLiBI47/H8hQf8vV2KJ3PVIEK5ToXw7hPBPSCnKbQJhmlIwBk0LCXvTlXLcrBKWGonhLro0sTlFTD1NRDSMYEqGC7W/XfXw4dul3QXbMLjJPjXx0FekGhIgwRTHLRE2Y3iTkmYickFQJZ7hMkWibj4HcUFKMUeGA9IcTyxPuSziVh8jdl/v2AU3S1X8X8dRgJYJ/GwgD3IqUxCFThYlCdxbuGY0407l4y6XX6YZ94OG8oVhnTqxVv28IbCogDUId1J9Ys42+CyowNwA7qt1xMYgw8XA1F9B+hamv+k/48OOEoZI8xnRONTwbVTXgDVGVXa3uC5jIn8muMDOAq1VzYR8IfrfZHJY2XUyfM4e7AxBHa98UvvlmBJH0dgAs+BtmBBFOFlRm4ww1RMvTNXp7o4hhTYTxJ4iQzXzyx28b0XBYJiURT4RyUArBatr8B7zBXYcj+GG1hVJ/LIlQg2hLvvkC94OGBgF+RGxyXA9QmbXsU84c6oFp2bi3RarDmuJEaXpkuQxIDMJFUVf4zndFXcyR05c7z1x3wCiyG8HGjuEA1U9NTTAO0WMrBVpMgwV12bFU7cTI8= 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:(13230025)(4636009)(39860400002)(376002)(346002)(396003)(366004)(136003)(451199018)(38100700002)(86362001)(38350700002)(36756003)(41300700001)(2906002)(6666004)(478600001)(52116002)(6486002)(8936002)(5660300002)(316002)(4744005)(66946007)(4326008)(8676002)(44832011)(2616005)(83380400001)(26005)(66556008)(6512007)(186003)(4743002)(1076003)(6506007)(66476007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2390Oa6AEy0cn38PmGP31ST27ORQZPXVqwIpL5TGa8UmF0GYS/ElC+zUgt/pyTMeiJaxAR3KnVoAG3uZVxPktFZ6FcD61Y3FMIKKA6ai4++eBFa5KUEu1cWNXKUa26/fz5BmyLNzCeB8E9HbhUjzTfQIo7pyLuiG5WOIrjeL70wzbs3ArsFeSw7QgFBERPsSjl1c+yZJI4V46KkU8F7Tdq4UkJoM3txDm8qvXtjoJeXxEko+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ngdx+Ai2qLqRBNXBwvwHoMMu2nHC5rqniPdfyWiyCCaa2m8/ObQHra72yq0xeRW6qZBhe8evODZLXpslhbJlfSywxWclydGECd/gw+lOG3Rbct14YSKeE4yCjRfaXs3uw5cYJRu7kcxnIHIJfhPhz0CyPccviMsCfeXBNlnJghx08a+25ZZS539sigfYJAIIjFaILpPeHlYaNfguIjsL0Uj9nJCUw//fRxuM+IE1diTQyWmYQU/YziQSPf/9YonOIKWYFiHkUozm8MBmazMbgv7yAlabkO X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa200c9a-c08e-43d8-3292-08db028dd6a3 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8404.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2023 06:47:22.0846 (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: P+Qv+eTGvrbsUpBUk+2zI2NpfuZjDh6/oZ/FyCvKUmrADhKZ8zsx05PUtIuH2aqRSnM15XQuu6rd3xAdtEiTEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7289 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org This patch set improves RXWATER setting for lpuart, also adds support for imx8ulp which has different rx_watermark value with imx7ulp. Sherry Sun (6): tty: serial: fsl_lpuart: make rx_watermark configurable for different platforms tty: serial: fsl_lpuart: set receive watermark for imx8qxp platform tty: serial: fsl_lpuart: Fix the wrong RXWATER setting for rx dma case tty: serial: fsl_lpuart: Enable Receiver Idle Empty function for LPUART tty: serial: fsl_lpuart: set RTS watermark for lpuart tty: serial: fsl_lpuart: add imx8ulp support drivers/tty/serial/fsl_lpuart.c | 50 +++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 9 deletions(-)