Message ID | 1528984982-5074-2-git-send-email-yibin.gong@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 63CE7600D0 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 14 Jun 2018 06:05:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54D6328A96 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 14 Jun 2018 06:05:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 493D628AAB; Thu, 14 Jun 2018 06:05:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DATE_IN_FUTURE_06_12, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C8BE128A96 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 14 Jun 2018 06:05:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VuIU4Qz6aYFPfYmLUxi3CX1/ns9LYUyRZLZKqT2r06Y=; b=HE0ahBOscAWKDI dgAAgzzfZbxrIqtwmvUtsIpzWSzaUhVAGnLEuIGpnzErGJv+2khWrEM/Bm5W9SBPhD87tTgi8bcvj 3ZnBLaZRVyrvd0wJ8SsVhT8tabWzStu1Wh2QCtLUwTffXWJkie3E+kSoSnG6Nk4jGOF5cXiZfLjf5 O7ObNzGiWwuPudKcJIdNK84ZNIk6ryYUYvTc2OgKOu4FHrAaV5h5eSDSzWh1+HSTCgQXuOJpXkxfF t+qw/mPFc+hu9qH0VtT7XoU4DorUgQL7caR3IG0Xm0xD6BlqDT3CLqlNY0Abcwau438KSBnWMNMuj E9QxLSeUs2SWrGTOVOCg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTLNU-0000aQ-QC; Thu, 14 Jun 2018 06:05:00 +0000 Received: from mail-ve1eur01on0080.outbound.protection.outlook.com ([104.47.1.80] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTLMu-0000Cc-4B for linux-arm-kernel@lists.infradead.org; Thu, 14 Jun 2018 06:04:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NYKguABsBJV90j9dFIS0EBmc1vmQc+44AXvbrZ/moZ4=; b=rQxmoyqzl19jAqzaEz41zKj6hE29UfwWhLCq79/TGukQlzaSS40m/vcecIQGD9WgZ+Q9B0JhXCocMkjVp0Dqw5c2RWlDA1Krl+a4sly6TL5RsFML+7BzoJ3hBs6AMVVSe0nD114JxtTz1Owxscy7YdwVTAdEhE2jxAkVxjRNE3s= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yibin.gong@nxp.com; Received: from robin-OptiPlex-790.ap.freescale.net (119.31.174.66) by AM5PR04MB3219.eurprd04.prod.outlook.com (2603:10a6:206:7::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Thu, 14 Jun 2018 06:04:09 +0000 From: Robin Gong <yibin.gong@nxp.com> To: vkoul@kernel.org, s.hauer@pengutronix.de, l.stach@pengutronix.de, dan.j.williams@intel.com, gregkh@linuxfoundation.org, jslaby@suse.com Subject: [PATCH v4 1/7] tty: serial: imx: correct dma cookie status Date: Thu, 14 Jun 2018 22:02:56 +0800 Message-Id: <1528984982-5074-2-git-send-email-yibin.gong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528984982-5074-1-git-send-email-yibin.gong@nxp.com> References: <1528984982-5074-1-git-send-email-yibin.gong@nxp.com> MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK0PR03CA0014.apcprd03.prod.outlook.com (2603:1096:203:2e::26) To AM5PR04MB3219.eurprd04.prod.outlook.com (2603:10a6:206:7::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1eaefb5e-6eb0-4aa4-14f0-08d5d1bca6bb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:AM5PR04MB3219; X-Microsoft-Exchange-Diagnostics: 1; AM5PR04MB3219; 3:LEslLX0uIKJ4Uqu/+7l/v1Lr6ihF10l6WvSMIY89KqtYDWcf1GUR5i5qWHaUjYdhvDHkrW7Q7LuN6UWDd+xRUShbEDv0BCjdoNnSGGUqWXZn90LgVR3om3Hdh3VjHQusA9T7WWdJ+VNTxua+AiQFwDjFyAVGA5n7K9JS5NM/QZTN0wWIW9yj6MCLRuv8LIvLsYKX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4jeHeTo7kiZjdPmCZ3mW5BL9NYioxIsd+SuAbm9xsE+AckCURxQLo/hCY1ozF6XCkdSG8Wzm6lEXQIX1Vd2oEs5g9RxPKNIxDy4en8KWACf/bS8hhZqLBWBHxSibDsXI6zeLXk7eGyfccp1TG9sbf; 4:QmEWiV1jyPPk6Dz3WxAEu7JZuW+jLhcKjhZxcW2Ixt+GO0gqh7WTuBBEr67J3hg/0WW53elCLCbQNnAUqntaT+3mANbkmNBn8CJK1elxCOSVVXjNOqsk8XXDibd7fduOyJrf17kbS2L3BMQD2TMJzuHYAvvwB6gD5M2bo5AnHoxfvdKg09Do/8ZBm2Y5V2cpsR7sG/3/IEJYL4VG9cF4v1NS+B+CJlidHGRk2JxxNHiW/VPYRJi1vDykKzLJqT+XMcNgCjGwzV8aAzotMrau03L57rgm4cD1haBRVZEaElDv3qUf+WDkIwdRDN2nlRCw X-Microsoft-Antispam-PRVS: <AM5PR04MB3219B67F2B3BA185E7151E11897D0@AM5PR04MB3219.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:AM5PR04MB3219; BCL:0; PCL:0; RULEID:; SRVR:AM5PR04MB3219; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(366004)(346002)(39380400002)(39860400002)(199004)(189003)(68736007)(59450400001)(478600001)(7736002)(8936002)(305945005)(66066001)(50226002)(7416002)(86362001)(6512007)(3846002)(6116002)(47776003)(316002)(16586007)(8676002)(81166006)(16526019)(26005)(186003)(81156014)(386003)(6506007)(2906002)(52116002)(76176011)(51416003)(36756003)(6486002)(5660300001)(4326008)(50466002)(106356001)(25786009)(48376002)(105586002)(97736004)(6666003)(446003)(486006)(476003)(53936002)(2616005)(11346002)(956004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR04MB3219; H:robin-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR04MB3219; 23:ZIC80VP5gLcjdatJb68HMaI4FmRbeGYy8e/F1Hjff?= =?us-ascii?Q?j9Ev5LfoXZOBbEdZ+Wu4AgohCRqhgLSqaD4pXqddEWDgDaC54etDghY5/IO6?= =?us-ascii?Q?PZ0fIeucjsPlzjWV3Bq78pcdvfU27t4uQg0e34dzX7/uKVUOTd1eOYCmzhEd?= =?us-ascii?Q?HfHVweD9XqvPRizGducWvfv1Cu4fXbTQLZRnOg9QLmQA9JETgKLSq1FvKW8X?= =?us-ascii?Q?s7zBvrCNYq+TAhWXTo7fzm65RZWfgFGB92O6r+RR2BNWK2+7I2p63vs8N649?= =?us-ascii?Q?UMh0veGE91/SbZbbSjFBUmlREj4wanif3USD7rPIvkeU0jeKUOCsaYHgp4AG?= =?us-ascii?Q?PZmC92tghWa77ODOLHUPkw6kGxpXT+khZJSVg0Ie3iUJk9FmrsmIrqDGYN2S?= =?us-ascii?Q?emSFWo12mJ/TtDLOXxBkwzzAiaXTWmDHK4rkYmutYOt+yStpzhHTIZ9Oi5+I?= =?us-ascii?Q?rnIFH+1jll75SidJdKFC1kc74TyBXgTofTVEod/6MgAqNbkXpCdpuhanHQQB?= =?us-ascii?Q?d4rGuXzCfuaN78ySTq76/P3UivvdiEo7ikVA78CvUfv8EuU/uhyj9GNwQEZm?= =?us-ascii?Q?6Ebej2wkguI/Z/1aayXg/dEb51slFmVXh5JcxlaYQD0geb0vz5fAtf1UrnOI?= =?us-ascii?Q?M8gGppknqDG4Pf/uGCbH8gfOYpVefAXUTiN+OTShyFg9msf05IgrSzKGqqdY?= =?us-ascii?Q?nrO1XX16q5TABOTvTPEtzv2xHA2qiBgE9uYYPv7f/lzzhjmLkBRaIXdn+Tpq?= =?us-ascii?Q?TB+tLp4oQaK6PlseYtYxlbazJLC+zb4fsRSvtbPOFSLOYQrlDpgLaH81/+Y2?= =?us-ascii?Q?+VSwkN0EvhPDBxCqjVlUPSzv7RnaFPCvpZfbPkBb394mOME1XRFWm6zVhJ2s?= =?us-ascii?Q?wPPkMDfZvxa54raL4y5zP1C3PJx5jMsZ8XyOgg5pZTod9rMzI4TWSikGeNC8?= =?us-ascii?Q?sYzpJvGMIaG5WICSGR+cp4eOfs3E9O5GlnuTrgPD8QoLrrJmjoVlEIhAngfP?= =?us-ascii?Q?Kbm/f2aGu6hhfT28cTUd8Bo20B16EviaLkWwDmCqIX+qvNyZjSh4Bd4seJJr?= =?us-ascii?Q?yCn3qy7iJiw57LvElqSTFgrL7oAiMh3WdRg8dO6I5agHAiJ6+u9xPfORcYVU?= =?us-ascii?Q?kZRGMr+DO7rZF3x2vHXImCTrLLIU3Q2GUc2SCj7L27kn941nEin5JSYOC2u/?= =?us-ascii?Q?Nfv8NBfeaXne3A7KJ5K+XeyovJB9NHIBJbm?= X-Microsoft-Antispam-Message-Info: gjvP/8XDPRELqxy70jNEUABvvM/+adxopdRF14HVC+2Ez+pyk/hehnGvQSxcP72HbRHdjeqWYTCvGRF5Dp/trWs2Qr3GILM8KRDuNn3acZgYA2Asg7GUtKQYE+WQG9oh5ypuocUJrfwfxnXq+2D8CNLQsqjZDpKgeSHaKSef8rkucRQv9FpQ/xhkIm0j/GaW X-Microsoft-Exchange-Diagnostics: 1; AM5PR04MB3219; 6:YRUtFTaxRQSPMPh4D+HCzQIVmLZApUps66ak8NTp2FYhdoqdvVND25BVD94nl11YnYkZwdQIDMeodxWrkc8jrXwsqCWD1nJV6bg5d7QM7OE8Hw08kVV6lFx85eWPzn3yjhaYkRygB7J+Y9qqxaTcNLL27CMAPZASomESVUFMU7YbDLLMBbVlV1fpQ72OvGA0zz1Pal9ZuYMzFHhzrHQzTKe7qWl/nmKBWj7RPcD5F2uXBFIn4roM87QWEL64gRfkSWLSdV6DhKfd1c00QYGLTJfPO/eD9BtTInexc8TbZroZ/DxYbxsP4bIoqAtw5IY5rb5udHK8Bmk4XAUwEurPJaAFDp1Kv7ny0pXFBv5zC8BIe//7OBalCjgGomrLdvMkpXvGF4+spx3RBXld3Y0LUo3BowWIQcG8lC7k0kXzagjmLSqhkTLwQRmonuEPoL7fYE2KcO/aXBoX0rCEas+DHQ==; 5:W//bavJpFHhd0Ia+pL1zQpjQ0JxEvH4FPZH42oYyqRLALYa2gDnSKHaOWbroHeLiitTGiyROd6B0x1YbC2SIeP5yFIIwL96USGAi9xei3ITO3Znt7tzCYo5Fytj7r4ZJ3DcopUc10TIUlKhGmbr8TRTls0FLijnssBa5yA3DmF8=; 24:YoArHbYI5mbTndgoGEMPqX2FXpbOw93AfJei9dgMYV04NuHThWbgH6TKjIaXS8WC0/X9SjrbyaKK7pgPi46ZrONE/SC0t8gUl+75o6pv6Ww= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR04MB3219; 7:uKFmX04nUaGxHbPthJCt52zG5vaShkmzjUCcxXvGekpyuYQjSU2hOgYjRVQvOuJmLp6vaODvPQbv8xCFketuLp63NCVjgvm+Okres3qocORDPmBtjtzYnAqRsfAFKiGT9lwvW4yfoRGZUlyd9jU5LFmCCi40UV2gXOlMwab9HEWBOAHaGusZ75LspYT+rJ20UTRB4TtWfefkSquJacUegKDkZyN+/7NeKddotRCB//Ni3Y82iZXhbDmWkNzj3zZr X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 06:04:09.1425 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1eaefb5e-6eb0-4aa4-14f0-08d5d1bca6bb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR04MB3219 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180613_230424_190347_18475228 X-CRM114-Status: GOOD ( 13.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: dmaengine@vger.kernel.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index c2fc6be..b83bc2c 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1051,7 +1051,7 @@ static void imx_uart_dma_rx_callback(void *data) unsigned int r_bytes; unsigned int bd_size; - status = dmaengine_tx_status(chan, (dma_cookie_t)0, &state); + status = dmaengine_tx_status(chan, sport->rx_cookie, &state); if (status == DMA_ERROR) { imx_uart_clear_rx_errors(sport);
Correct to check the right rx dma cookie status in spit of it works because only one cookie is running in the current sdma. But it will not once sdma driver support multi cookies running based on virt-dma. Signed-off-by: Robin Gong <yibin.gong@nxp.com> --- drivers/tty/serial/imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)