From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934322AbdC3Pzt (ORCPT ); Thu, 30 Mar 2017 11:55:49 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:45981 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933610AbdC3Pzr (ORCPT ); Thu, 30 Mar 2017 11:55:47 -0400 Date: Thu, 30 Mar 2017 17:55:44 +0200 From: Boris Brezillon To: Masahiro Yamada Cc: linux-mtd@lists.infradead.org, Enrico Jorns , Artem Bityutskiy , Dinh Nguyen , Marek Vasut , Graham Moore , David Woodhouse , Masami Hiramatsu , Chuanxiao Dong , Jassi Brar , linux-kernel@vger.kernel.org, Brian Norris , Richard Weinberger , Cyrille Pitchen Subject: Re: [PATCH v3 25/37] mtd: nand: denali: switch over to cmd_ctrl instead of cmdfunc Message-ID: <20170330175544.4459007f@bbrezillon> In-Reply-To: <1490856383-31560-26-git-send-email-yamada.masahiro@socionext.com> References: <1490856383-31560-1-git-send-email-yamada.masahiro@socionext.com> <1490856383-31560-26-git-send-email-yamada.masahiro@socionext.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 30 Mar 2017 15:46:11 +0900 Masahiro Yamada wrote: > /* > * sends a pipeline command operation to the controller. See the Denali NAND > * controller's user guide for more information (section 4.2.3.6). > @@ -824,7 +856,13 @@ static void denali_select_chip(struct mtd_info *mtd, int chip) > > static int denali_waitfunc(struct mtd_info *mtd, struct nand_chip *chip) > { > - return 0; > + struct denali_nand_info *denali = mtd_to_denali(mtd); > + uint32_t irq_status; > + > + /* R/B# pin transitioned from low to high? */ > + irq_status = denali_wait_for_irq(denali, INTR__INT_ACT); > + > + return irq_status & INTR__INT_ACT ? 0 : NAND_STATUS_FAIL; Okay, you fix the ->waitfunc() implementation here. Great! Then I'm fine with patch 18. > }