Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751484AbdFHRaT (ORCPT ); Thu, 8 Jun 2017 13:30:19 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:42438 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914AbdFHRaR (ORCPT ); Thu, 8 Jun 2017 13:30:17 -0400 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com v58HUE61006064 X-Nifty-SrcIP: [209.85.213.169] MIME-Version: 1.0 In-Reply-To: References: <1496836352-8016-1-git-send-email-yamada.masahiro@socionext.com> <1496836352-8016-11-git-send-email-yamada.masahiro@socionext.com> <20170607155701.4bc89ad8@bbrezillon> <20170608091239.0095511b@bbrezillon> <20170608132620.17fc7c96@bbrezillon> <20170608174311.4f012cc5@bbrezillon> From: Masahiro Yamada Date: Fri, 9 Jun 2017 02:30:12 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 10/23] mtd: nand: denali: rework interrupt handling To: Boris Brezillon Cc: Marek Vasut , Richard Weinberger , Cyrille Pitchen , Artem Bityutskiy , Linux Kernel Mailing List , Dinh Nguyen , linux-mtd@lists.infradead.org, Masami Hiramatsu , Chuanxiao Dong , Jassi Brar , Brian Norris , Enrico Jorns , David Woodhouse Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 542 Lines: 22 2017-06-09 2:26 GMT+09:00 Masahiro Yamada : > ->dev_ready() is optional, but we may end up with waiting more than needed. > > case NAND_CMD_RESET: > if (chip->dev_ready) > break; > udelay(chip->chip_delay); > > > chip->chip_delay is probably set large enough, so this is not optimal. I misunderstood the code. The following line will be the most of the part of delay. nand_wait_status_ready(mtd, 250); -- Best Regards Masahiro Yamada