Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5724846ybv; Tue, 18 Feb 2020 02:49:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxn7mnKzy+LDOzvhkf4rP5TQ+80CxVAEsNIPfOSaulajXUnu8SeRJek8FzjnPDiF01fu6yg X-Received: by 2002:aca:f354:: with SMTP id r81mr772870oih.90.1582022953373; Tue, 18 Feb 2020 02:49:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582022953; cv=none; d=google.com; s=arc-20160816; b=JS9RKUvnw5SySBW1E3PQqwMXNgwlWZfJZd0UMnss20g6N2Es6NYAtUScRhAAl+j6wW HkqvB5HDu/YPPsOwBKcYZd5FcSDAf7AIsNPR/oD3lEa5i5/S5P2oCz9GnUCvYFUNt2Ck qUNCh/WoqwWoVohETTcHxJs4KuUTjdn7bLF6nUi6/1sAcvGZRH6CzEPNUpiYNDyJI8Y2 ULAT5lI8GJPwF5xwi44r6IT4kB4OR4hrar+l1Bx6aM4D0qX0jniQDWqMDPAM2QNBmRd1 4S9n+yW4ZbCjBXrvKWKtoT4E+9+8wybNRg1JZmBM7ggN2QS1iWYHoDioUbmw0R/MTGd8 d+mw== 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=lroJ2sCaud/qtgIz890hqTdI+OgRz8e4ppWegGLe9hg=; b=VY/hRda/Bs0AOKiAbtUiDl6HuKn8CknWOWmjvo0fwqpIXJQebCedAOSETWQ1tDcFzE PDYWCA4KAzrUYqvUv1m7QdeZZ47u2rOD1+zRETq3muAQinIkUN57lMGmQKLEd6rsWHdK 6QyTH2V4nzfhMGErUFDxTCaMwLCN/L4o75pZMznpITalLkGXlkrsTLGBP7ygSwO5SrpP 5GDduVLWXsotHPxjc82ppmURhCFNLazrlULv3hIuLSxllzzmnP8Xj6rA6cWEhfHLMwMH ZCvFiLlWZKeSyNerMEGJzp4WsXTyZ3nvpQlhu07May1bFR10BAktHYaoU2eR/cTIjK9G hDzA== 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 p7si1599847ota.299.2020.02.18.02.49.00; Tue, 18 Feb 2020 02:49:13 -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; 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 S1726610AbgBRKsj convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Feb 2020 05:48:39 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:49425 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbgBRKsj (ORCPT ); Tue, 18 Feb 2020 05:48:39 -0500 Received: from xps13 (lfbn-tou-1-1151-102.w90-76.abo.wanadoo.fr [90.76.211.102]) (Authenticated sender: miquel.raynal@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id C0F8D100010; Tue, 18 Feb 2020 10:48:37 +0000 (UTC) Date: Tue, 18 Feb 2020 11:48:37 +0100 From: Miquel Raynal To: Piotr Sroka Cc: Kazuhiro Kasai , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Vignesh Raghavendra , , Subject: Re: [PATCH 4/4] mtd: rawnand: cadence: reinit complete before execute command Message-ID: <20200218114837.2d5e6104@xps13> In-Reply-To: <1581328530-29966-4-git-send-email-piotrs@cadence.com> References: <1581328530-29966-1-git-send-email-piotrs@cadence.com> <1581328530-29966-4-git-send-email-piotrs@cadence.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (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 Hi Piotr, Piotr Sroka wrote on Mon, 10 Feb 2020 10:55:28 +0100: > Reinitilaize complete object before executing CDMA command to make sure > that done flag is ok. Looks fine, besides the need for Fixes/Stable tags, what do you think? > > Signed-off-by: Piotr Sroka > --- > drivers/mtd/nand/raw/cadence-nand-controller.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mtd/nand/raw/cadence-nand-controller.c b/drivers/mtd/nand/raw/cadence-nand-controller.c > index 5c1bbb05ab51..efddc5c68afb 100644 > --- a/drivers/mtd/nand/raw/cadence-nand-controller.c > +++ b/drivers/mtd/nand/raw/cadence-nand-controller.c > @@ -998,6 +998,7 @@ static int cadence_nand_cdma_send(struct cdns_nand_ctrl *cdns_ctrl, > return status; > > cadence_nand_reset_irq(cdns_ctrl); > + reinit_completion(&cdns_ctrl->complete); > > writel_relaxed((u32)cdns_ctrl->dma_cdma_desc, > cdns_ctrl->reg + CMD_REG2); Thanks, Miquèl