From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gY79e-0007uK-U0 for linux-mtd@lists.infradead.org; Sat, 15 Dec 2018 10:26:44 +0000 Date: Sat, 15 Dec 2018 11:26:28 +0100 From: Miquel Raynal To: Boris Brezillon Cc: Richard Weinberger , linux-mtd@lists.infradead.org, David Woodhouse , Brian Norris , Marek Vasut , stable@vger.kernel.org Subject: Re: [PATCH] mtd: rawnand: Fix JEDEC detection Message-ID: <20181215112628.2181054e@xps13> In-Reply-To: <20181213105526.30871-1-boris.brezillon@bootlin.com> References: <20181213105526.30871-1-boris.brezillon@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Boris, Boris Brezillon wrote on Thu, 13 Dec 2018 11:55:26 +0100: > nand_jedec_detect() should return 1 when the PARAM page parsing > succeeds, otherwise the core considers JEDEC detection failed and falls > back to ID-based detection. >=20 > Fixes: 480139d9229e ("mtd: rawnand: get rid of the JEDEC parameter page i= n nand_chip") > Cc: > Signed-off-by: Boris Brezillon > --- > drivers/mtd/nand/raw/nand_jedec.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/drivers/mtd/nand/raw/nand_jedec.c b/drivers/mtd/nand/raw/nan= d_jedec.c > index 5c26492c841d..38b5dc22cb30 100644 > --- a/drivers/mtd/nand/raw/nand_jedec.c > +++ b/drivers/mtd/nand/raw/nand_jedec.c > @@ -107,6 +107,8 @@ int nand_jedec_detect(struct nand_chip *chip) > pr_warn("Invalid codeword size\n"); > } > =20 > + ret =3D 1; > + > free_jedec_param_page: > kfree(p); > return ret; Applied on nand/next. Thanks, Miqu=C3=A8l