Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3551877pxb; Mon, 24 Jan 2022 12:03:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfqtnV92LYfiiJDaerTwG82k+mBM8FF3YWJ/xJbv0h8aIkQJ7h44APmBtuc9hXN84N3gMV X-Received: by 2002:aa7:914a:0:b0:4c6:c181:5251 with SMTP id 10-20020aa7914a000000b004c6c1815251mr15555465pfi.41.1643054588853; Mon, 24 Jan 2022 12:03:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054588; cv=none; d=google.com; s=arc-20160816; b=vwRMiAXEmQgUVNY5sFlMOLxQlcLGceTe/RXQpEpSN5oDOdJcnuZTcrzpwj4zYQ0VxD xU1CCUYi7m1xVexKlG+gDiXFS/3PHYib6Muunsy/kTOgwdFg+I28XdDzUi9bfUFdeGbf S3f3d3hDQi4HKFaSKTjaiHAwDttpFobkE8d4bQdYz1ZAvJE8ZhDc22sFViz6iQ97RNTp 85iy+jtI1gYv4lb8+sfvZBXyfc8SF7RTvgMRMMThfZ24rlysdUn2hsOqRrqythtmMi8b 6rXXyJPh5G0m+j5Z/jRVx1/vAxaRjw9SVqGSDHOz/Pzs93al+hFMEjPaGQgZQnU01fwL b9cg== 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=r8o9is1GbnLAEW285n0zlWwsmKi5DVB94cAvs0greIs=; b=xdS3YJd1mpwGyN6BH8o77KUBePg7Ax71yhEZyn6ohp0XGULBbWqRofJFuvW+On17Wd CDynUqviOOTZSCK/2r8nOExYaress3b8rRGpegy58CcggEbxYD5WjyjjVMcMYbFZGY9s RGuR5RnINAEgebD4XBPqdWbXMMHMdlowApGuvUGiotefmr6BWoo6Al4IZI4h+BfiiAXe fNBjzvbhc28FGuc+y8guQ55SaDN7FHZ4GNNW9q8iLYOm2Jlgp7yFUoy4YWGWpgC2oqfE 6v8YaV6qOEbg47uIZmOd3EFLLzvWTiFNojyw92CYnYnvVb5L7c3cCu7AbGqvJDuP5Ygr 6HLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="TWc1hGO/"; 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 y9si242044pjp.56.2022.01.24.12.02.56; Mon, 24 Jan 2022 12:03:08 -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="TWc1hGO/"; 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 S1345022AbiAXTCb (ORCPT + 99 others); Mon, 24 Jan 2022 14:02:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344617AbiAXS6n (ORCPT ); Mon, 24 Jan 2022 13:58:43 -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 40734C06138E; Mon, 24 Jan 2022 10:55:44 -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 D27B661507; Mon, 24 Jan 2022 18:55:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4566DC340E5; Mon, 24 Jan 2022 18:55:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050543; bh=JTtng4QJ7NBHFBumRNtIbeLMQ3MADqJF9nWIPqFjPPI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TWc1hGO/oo3FbSgmOyivifaeUQhYs8KdffhsATiv8Rvwafb7NVXuNEmwV7Jyk5Ieu tF082ex/VXIf4fm1pu3CpHePZQiatZPGwO/rFZE5HKs5jQ41OMGrTaIM90AtmAfA4b KtIlk/NB8tt+4pwMEFJkp7ohdwPDvCSw5V1wLnOo= 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.9 035/157] tty: serial: atmel: Call dma_async_issue_pending() Date: Mon, 24 Jan 2022 19:42:05 +0100 Message-Id: <20220124183933.917721224@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183932.787526760@linuxfoundation.org> References: <20220124183932.787526760@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 4aaafc88a151b..5dd04a1145b40 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -933,6 +933,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) @@ -1197,6 +1199,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