Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3580692pxb; Mon, 24 Jan 2022 12:43:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaMnFDx65pmdyOEMz7LqdiQZ8erwPo3+wMDPGGUsAEQNvhJSThsAfwDunD/AXBGkRYRWFf X-Received: by 2002:a63:150f:: with SMTP id v15mr13009889pgl.243.1643057035754; Mon, 24 Jan 2022 12:43:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643057035; cv=none; d=google.com; s=arc-20160816; b=ypIfABkUdLdMOrdEu7+N4oDxcPe/e8qwFfLDB2AZTBzZmckBjeIgfbY+NgImu+9tb3 R52ZkTg7Ql3yPpwWZKINLBVCH+p/MoHOAnIrohMs7e8N2N3LEqEBpgnoe2ofRn1AAD0z E9yPx4jAW8aggWYJWSJR3UrKqUi4GOY+Hu8ZqpAkG6ITqU3Xr00bOMswnPb0Ki0nAS76 4diaYot/IqnWSJhwxbW5I+cxxu3QWyDSGI03pEo0eIAp7voVaqSpb7oqeGHFMz0LgFeS GgrqB93cse4D1Af2SgN45HK4QMEuAMA6Q8FkXSUnuyLaflLGCm0GOVKx0lN4fcZs0K0+ f1Bg== 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=e1b4wRrq8ASyKwRmrfnATxc+9aAPPRnUHYBEX7exoqU=; b=YmEfFz/upZQadFKHyBtrAZnljMvJBPXR3w74i0tdIcEJrz17k89gLCkqMt9vjhw9zy k/kufOn/9ECrhR8udaGZcUYbYo3QDXW/u3ATSkTXiT2UMNVKw+7NbOKaKLEWiGDKj4Ql aHC4g5I2XmuCrUiBxWYoDfzpOCpBRn24CvhYe8rguKjfxxowTjRNJfApFybmBXwNhyqn jx3225/btfu82odlqkUz9TlHMAHyMzYWmy42JbYYo/FBYMYqW3CiWhPczw6dtXHr3U4Q whIeP1d53SmWH7m7A9bo+vKlCNYeB47ZuVODSPLebED2BWUuV40zI2rhiCHUwMzfSVgL TB/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AZ1cPx3h; 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 u21si15343349plq.325.2022.01.24.12.43.28; Mon, 24 Jan 2022 12:43:55 -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=AZ1cPx3h; 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 S1359254AbiAXT6D (ORCPT + 99 others); Mon, 24 Jan 2022 14:58:03 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:50538 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351483AbiAXT1N (ORCPT ); Mon, 24 Jan 2022 14:27:13 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id 3B967B81233; Mon, 24 Jan 2022 19:27:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E8FCC340E7; Mon, 24 Jan 2022 19:27:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052429; bh=5dfdM11Vu6Ql+YgfcST9a+l5HW3BDYKh79+zoWWMh4E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AZ1cPx3hIB0yidB/wuqUA7i/JB83qx1CyypujD+rY8z6I5vrjxCJ/TOPbsG92UgZ8 l0AnfepAiJJmDiMNG1fhJcf3f3dGfu2Jr0lewBa4pm+oI/Z2x0pwGsAgOx+qKHTTIW lj7xixKgydn4sAP3JVo+FxSJO3Gn6LdoI0E1cJQ0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tudor Ambarus , Sasha Levin Subject: [PATCH 5.4 054/320] tty: serial: atmel: Call dma_async_issue_pending() Date: Mon, 24 Jan 2022 19:40:38 +0100 Message-Id: <20220124183955.577865981@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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 da076493b336a..3b2c25bd2e06b 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -1007,6 +1007,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) @@ -1273,6 +1275,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