Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967992AbdIZISp (ORCPT ); Tue, 26 Sep 2017 04:18:45 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:38482 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967292AbdIZISk (ORCPT ); Tue, 26 Sep 2017 04:18:40 -0400 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com v8Q8IUH4025270 X-Nifty-SrcIP: [209.85.161.170] X-Google-Smtp-Source: AOwi7QDkhpf0MRC6gmsA0ulMjpf4wGR/uxeTgpkAbZuf2/a+UL+/KiwUAEFqbSDJSbKyPjmBDTHX2hJ7f+B0rYcFFdY= MIME-Version: 1.0 In-Reply-To: <20170926084356.553867a1@bbrezillon> References: <1506397164-3648-1-git-send-email-yamada.masahiro@socionext.com> <20170926084356.553867a1@bbrezillon> From: Masahiro Yamada Date: Tue, 26 Sep 2017 17:17:49 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mtd: nand: wait for tWHR after NAND_CMD_STATUS / NAND_CMD_READID To: Boris Brezillon Cc: Richard Weinberger , Linux Kernel Mailing List , Marek Vasut , linux-mtd@lists.infradead.org, Cyrille Pitchen , Brian Norris , 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: 928 Lines: 39 2017-09-26 15:43 GMT+09:00 Boris Brezillon : > On Tue, 26 Sep 2017 12:39:24 +0900 > Masahiro Yamada wrote: > >> Read Status and Read ID require tWHR before reading the first data. >> Insert a very short wait to make sure to meet the spec. >> >> I have not seen any problem report for now, but nand_command() and >> nand_command_lP() are generic hooks, so it makes sense to implement >> fail-safe code here. >> >> Signed-off-by: Masahiro Yamada >> --- > OK, will do. BTW, I see unconditional wait for tWB a few lines below, but it gives no performance regression because we will wait much longer in nand_wait_ready(). /* * Apply this short delay always to ensure that we do wait tWB in * any case on any machine. */ ndelay(100); nand_wait_ready(mtd); -- Best Regards Masahiro Yamada