From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eKWMG-0005se-CN for linux-mtd@lists.infradead.org; Thu, 30 Nov 2017 21:27:02 +0000 Date: Thu, 30 Nov 2017 22:26:32 +0100 From: Boris Brezillon To: Boris Brezillon , Richard Weinberger , linux-mtd@lists.infradead.org Cc: David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen , Miquel Raynal Subject: Re: [PATCH] mtd: nand: hynix: Don't wait after applying new read-retry params Message-ID: <20171130222632.5754e660@bbrezillon> In-Reply-To: <20171113095901.24971-1-boris.brezillon@free-electrons.com> References: <20171113095901.24971-1-boris.brezillon@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 13 Nov 2017 10:59:01 +0100 Boris Brezillon wrote: > Setting read-retry parameters has no impact on the R/B pin, so waiting > for the chip to be ready is useless. Applied. > > Signed-off-by: Boris Brezillon > --- > drivers/mtd/nand/nand_hynix.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/mtd/nand/nand_hynix.c b/drivers/mtd/nand/nand_hynix.c > index 985751eda317..72d98cbff4ca 100644 > --- a/drivers/mtd/nand/nand_hynix.c > +++ b/drivers/mtd/nand/nand_hynix.c > @@ -83,7 +83,6 @@ static int hynix_nand_setup_read_retry(struct mtd_info *mtd, int retry_mode) > struct nand_chip *chip = mtd_to_nand(mtd); > struct hynix_nand *hynix = nand_get_manufacturer_data(chip); > const u8 *values; > - int status; > int i; > > values = hynix->read_retry->values + > @@ -112,10 +111,6 @@ static int hynix_nand_setup_read_retry(struct mtd_info *mtd, int retry_mode) > /* Apply the new settings. */ > chip->cmdfunc(mtd, NAND_HYNIX_CMD_APPLY_PARAMS, -1, -1); > > - status = chip->waitfunc(mtd, chip); > - if (status & NAND_STATUS_FAIL) > - return -EIO; > - > return 0; > } >