Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8561890ybl; Thu, 16 Jan 2020 19:39:08 -0800 (PST) X-Google-Smtp-Source: APXvYqynWsqOapDAOlTqOHBgo6OkE7oL0EYiihiEjk1NiSz688r0iWjIb+MiH6v7y6drWwNxCqDH X-Received: by 2002:aca:3cd7:: with SMTP id j206mr2017997oia.142.1579232348375; Thu, 16 Jan 2020 19:39:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579232348; cv=none; d=google.com; s=arc-20160816; b=u3GCCuJpL2P9Ir2GYgJpTAUFqayFs7cJR4bBufCKkRiGqJdWlq/WQeolrJv/2E/iLI 1zopmgOFnyUJ013YiY48/IhxWND8yeURkOgpHjtuPCPD4Ma4LvVgArLhSId8jN9sdS2j Qyd9ExZA6QetIWLq1lyrSa/431OMq6HLDwsMYpf6lJvA7SftObArxmRlF5A3hFX3Fy1O +/FPm2Zq1AALD25/mEfwgEaGq2TSfJ0U6dwB7LjdbGGBAlvcMCmJzni5QAGshwpMduQP fqtcsLisreIG+8DJ+ZRW5HqyPnwViZqp2lDHmwB4DGnfKDWvojx+NOvm+lvKHYHX2Vsq FTFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=G/bx8Yl6xaNm7O9FNBTszNP96PO28NItea4RUWnB46g=; b=DX3avAu9QckIzYSDI6aEislOXkYlK3jINOrQSb4NxaqzSdZZ5kQFuvlxmtKckle2vf FP59F2WuAJmWbrYnLFVQf7IhUjO/V3APfp+DhJjBXz8FQA5kRWZBNn0hIAtIoEcNblNH 2Qxcq1kPchIKGGOxTul4nOlHCzUPCCrdaNzho8TGGH7heDRy3rj13+3BrFwnX9jlSK4O fPu/ldHumAP/aIU9TjVZ8jTY4dJuOU+UUgx0O1bNGRanJEqtVNsRCcghtMorM6ZCj4wp rTp/W4zIVyTbU34oyN/KD/vKDs60JCHK7/uKt5hra1PIOpY/PQ80n9bCLZLq1JutP4NC UgvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X2L68pLY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si15060903otp.13.2020.01.16.19.38.56; Thu, 16 Jan 2020 19:39:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X2L68pLY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390925AbgAPXry (ORCPT + 99 others); Thu, 16 Jan 2020 18:47:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:46890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390589AbgAPXUY (ORCPT ); Thu, 16 Jan 2020 18:20:24 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 932A02075B; Thu, 16 Jan 2020 23:20:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579216824; bh=bSbMUm6My9PBpn1i1nRi6dfQfDMXOv5DX13A1b+34nI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X2L68pLYM/VDTmVPXFS1t2cybhyVObwZ2y8ITXQrlxi+pwJZtwPZy62WFf6MJjDm2 IuxmaYHRk4LbaH0fwa/l9p0pQdONwKJZ5VwpNH+Lk0y9BL3FPZ7PUkYyu4DP0B4RSZ TeytzzOrAjAvNLWPanG/wiCJVPICB5lDVxm9E1B0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aaro Koskinen , Peter Ujfalusi , "H. Nikolaus Schaller" , Miquel Raynal Subject: [PATCH 5.4 017/203] mtd: onenand: omap2: Pass correct flags for prep_dma_memcpy Date: Fri, 17 Jan 2020 00:15:34 +0100 Message-Id: <20200116231746.217281240@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200116231745.218684830@linuxfoundation.org> References: <20200116231745.218684830@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peter Ujfalusi commit 8bcef0d54067077cf9a6cb129022c77559926e8c upstream. The commit converting the driver to DMAengine was missing the flags for the memcpy prepare call. It went unnoticed since the omap-dma driver was ignoring them. Fixes: 3ed6a4d1de2c5 (" mtd: onenand: omap2: Convert to use dmaengine for memcp") Reported-by: Aaro Koskinen Signed-off-by: Peter Ujfalusi Tested-by: H. Nikolaus Schaller Tested-by: Aaro Koskinen Signed-off-by: Miquel Raynal Signed-off-by: Greg Kroah-Hartman --- drivers/mtd/nand/onenand/omap2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/mtd/nand/onenand/omap2.c +++ b/drivers/mtd/nand/onenand/omap2.c @@ -328,7 +328,8 @@ static inline int omap2_onenand_dma_tran struct dma_async_tx_descriptor *tx; dma_cookie_t cookie; - tx = dmaengine_prep_dma_memcpy(c->dma_chan, dst, src, count, 0); + tx = dmaengine_prep_dma_memcpy(c->dma_chan, dst, src, count, + DMA_CTRL_ACK | DMA_PREP_INTERRUPT); if (!tx) { dev_err(&c->pdev->dev, "Failed to prepare DMA memcpy\n"); return -EIO;