Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp864677imm; Fri, 14 Sep 2018 07:30:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZzLHKlp8EGRvjaj3N37S8r181Ou5hxs2sBDWLMLPOJ2vZX0iO7XQwZ4ehQbOxpLDwVVCHF X-Received: by 2002:a63:5204:: with SMTP id g4-v6mr12106409pgb.274.1536935405519; Fri, 14 Sep 2018 07:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536935405; cv=none; d=google.com; s=arc-20160816; b=1IjiDDd6P5c5fkSBylszywe1efiJZ9hKfSOiZxQPOYCaandgXeTTsOU34QaTMTDvlJ KkO13ZlSwb6poE4qmMhFzeU0hnZnWsboWw1bYZLFdP71vQEarlE8kXPo2xaf5H6s8LI1 9X7YeOTLm7sxcKPZxEZBwOgNRdjjrcSnJyq5yzTsPTV4AVpltoGzB7V9wtQneO1FTXD5 h6dLTjCg4SMBSxjEaDSxH5fWjcn74rDLd2QXYmzheinV7wKzJSqfb2y49eIaDjGgu0d8 LbrN6Ps0MTxB+kD2YrTtPcB5BxM2xZKtAi7ZxWp5a6mDLTeQAcZX2a5CegOCTlLAexJd vJgg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=GyKJp1wVepJLNgVsOCyIo/ErtIilGXT1EC7Z0JkBfoI=; b=nxmq/g+00lDOhwgSUGyWyvggFYWnQaWxRA8w2Gap0ScoREQSy7YCxSrDTc2ExoO70q UcjyqW751F1OVa0nUH1RAHUMyEcr1LYGd8psFqsW6mWaUJQnGWnSpCsdwKO9ACtWI+Oh +L+jYg4nGM8RXXNxzR63TiDsEqH45OVOKUaii3X1zgPuwJGaaIEPyXj3LOqpYK/0R8et vYTEac6vFZcy/hIctPiq64MGJHNAML7+0d0MKPyBqhB84eGleXjjVUWzQwEY/FcCV2Zf iR2rE2qm/9wEc3ejghbciFtAzb1kPiGXYdcmfkyySynby8qc3yZWEgwoUH3Fd4+PJJPP 3n/w== ARC-Authentication-Results: i=1; mx.google.com; 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 p14-v6si7474099pgg.67.2018.09.14.07.29.49; Fri, 14 Sep 2018 07:30:05 -0700 (PDT) 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; 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 S1728036AbeINToP convert rfc822-to-8bit (ORCPT + 99 others); Fri, 14 Sep 2018 15:44:15 -0400 Received: from mail.bootlin.com ([62.4.15.54]:44393 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbeINToP (ORCPT ); Fri, 14 Sep 2018 15:44:15 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id F3535206FF; Fri, 14 Sep 2018 16:29:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from xps13 (unknown [37.170.158.44]) by mail.bootlin.com (Postfix) with ESMTPSA id 235C520379; Fri, 14 Sep 2018 16:29:27 +0200 (CEST) Date: Fri, 14 Sep 2018 16:29:23 +0200 From: Miquel Raynal To: Masahiro Yamada Cc: linux-mtd@lists.infradead.org, Boris Brezillon , Steffen Trumtrar , linux-kernel@vger.kernel.org, Marek Vasut , Brian Norris , Richard Weinberger , David Woodhouse Subject: Re: [PATCH] mtd: rawnand: denali: fix a race condition when DMA is kicked Message-ID: <20180914162923.05c44fcc@xps13> In-Reply-To: <1536818329-11068-1-git-send-email-yamada.masahiro@socionext.com> References: <1536818329-11068-1-git-send-email-yamada.masahiro@socionext.com> Organization: Bootlin X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) 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 Hello, Masahiro Yamada wrote on Thu, 13 Sep 2018 14:58:49 +0900: > I thought the read-back of the DMA_ENABLE register was unnecessary > (at least it is working on my boards), then deleted it in commit > 586a2c52909d ("mtd: nand: denali: squash denali_enable_dma() helper > into caller"). Sorry, I was wrong - it caused a timing issue on > Cyclone5 SoCFPGAs. > > Revive the register read-back, commenting why this is necessary. > > Fixes: 586a2c52909d ("mtd: nand: denali: squash denali_enable_dma() helper into caller") > Reported-by: Steffen Trumtrar > Signed-off-by: Masahiro Yamada Reviewed-by: Miquel Raynal Thanks, Miquèl