Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3567511pxb; Mon, 24 Jan 2022 12:23:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFbL1JrSR0aD2PU76ETK+Tq3bimQFYd/GDrwDpVDkJyayhQcCdo5+S+HvfCwImZUz+mbFR X-Received: by 2002:a17:902:9343:b0:148:a2e8:2c49 with SMTP id g3-20020a170902934300b00148a2e82c49mr16237940plp.152.1643055836847; Mon, 24 Jan 2022 12:23:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055836; cv=none; d=google.com; s=arc-20160816; b=qW43d/hPubsbwVezlxl7CN3bNKLu3l8TD0dzdBm3e0N46pFcwWfRUiIhhkCJ7UIP3O MBfMRJiFhB6bC8uU/p0sIXQfwouB9gfysgO15Y0UD+MqpJxhN30YpSNVP2y+thcfWBsd YCW8hRkhn303MLPU23KYVCE+kcYpKWEOjyqj/N1/I4mv48MkGNoXJtYTWW+9oWialR+C nuy6yZzZceCQlW682/mbjk7XdMFFuSIO2Tc/IrhNF3l1VFjvr/A7S3Yud7aY0SYarHtZ ecAymo/VBQlasFjQ5nIKGowLBk0TVrpn9pE4iyUsr3rtnCGpL+rj5XD+IG0jIGrdR85O 44Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XKNy4lq+OsJQj04sEgaAJB9KJv2Z6p95CSb993YySHQ=; b=FbmlBsG8bvjWs6tR8QF4aB9Rx1OY1VFLmerLwsWJpkAW3Sd5GdPUH7wFTk7DDNaeDk kSDxMKuCPhcUKn6aGht+pK9zmpnGn0DGdL+ARgtGlp3SIq3skeXlI6eIa7Hw71MBQM1x ABXdZydty0WXmnlfsOvcNeuxxTLaQrHs8U92Fqz5VtcV8Qlvpfa3woiQrkxg6vkwlp67 ab0oX6Er9j0Tb+LClTYCj7rj6WlyO/DgUiu3X+du0Ia57JhCEoCuTMednpW1XVMC0V8x WKYmMVLHNhx4LFXY/qQ92m6ObheCe+/z8vjG+PMwS0GZ6LanzuDdmkQM/QPW73S+8OFv hoWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jlSpWBQU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u184si3344188pgd.569.2022.01.24.12.23.43; Mon, 24 Jan 2022 12:23:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jlSpWBQU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237237AbiAXT3T (ORCPT + 99 others); Mon, 24 Jan 2022 14:29:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346589AbiAXTOU (ORCPT ); Mon, 24 Jan 2022 14:14:20 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1179BC06177D; Mon, 24 Jan 2022 11:06:03 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A509960E8D; Mon, 24 Jan 2022 19:06:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81612C340E5; Mon, 24 Jan 2022 19:06:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051162; bh=hvwqAWRJ4apn+57AcPKoLybt+PMGly9Vz3DbNf3/Zgk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jlSpWBQUyiPDsQbKb1OBdUXeW4EwI3ustEMTR5KLKM2fI0QxbobayaNZD5mi8pvZm i7aEbci1X24RReqHPbZl9sAkbqwUFoaWduoiHK8Oc4mP+85IdzXZSDz17M17i25vMo e/sW5yyughKZ3+Vc/Zq1jXFCaPVYjyi4ojdYSOJM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tudor Ambarus , Sasha Levin Subject: [PATCH 4.14 042/186] tty: serial: atmel: Call dma_async_issue_pending() Date: Mon, 24 Jan 2022 19:41:57 +0100 Message-Id: <20220124183938.479526891@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tudor Ambarus [ Upstream commit 4f4b9b5895614eb2e2b5f4cab7858f44bd113e1b ] The driver wrongly assummed that tx_submit() will start the transfer, which is not the case, now that the at_xdmac driver is fixed. tx_submit is supposed to push the current transaction descriptor to a pending queue, waiting for issue_pending to be called. issue_pending must start the transfer, not tx_submit. Fixes: 34df42f59a60 ("serial: at91: add rx dma support") Fixes: 08f738be88bb ("serial: at91: add tx dma support") Signed-off-by: Tudor Ambarus Link: https://lore.kernel.org/r/20211125090028.786832-4-tudor.ambarus@microchip.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/serial/atmel_serial.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index 9a56b88df95f8..4da5604d7385a 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -930,6 +930,8 @@ static void atmel_tx_dma(struct uart_port *port) atmel_port->cookie_tx); return; } + + dma_async_issue_pending(chan); } if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) @@ -1194,6 +1196,8 @@ static int atmel_prepare_rx_dma(struct uart_port *port) goto chan_err; } + dma_async_issue_pending(atmel_port->chan_rx); + return 0; chan_err: -- 2.34.1