From: Boris Brezillon <boris.brezillon@bootlin.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Richard Weinberger <richard@nod.at>,
David Woodhouse <dwmw2@infradead.org>,
Brian Norris <computersforpeace@gmail.com>,
Marek Vasut <marek.vasut@gmail.com>,
Sylvain Lemieux <slemieux.tyco@gmail.com>,
linux-mtd@lists.infradead.org, Vladimir Zapolskiy <vz@mleia.com>
Subject: Re: [PATCH v3 00/11] Fix NAND controllers probe functions error path
Date: Thu, 26 Apr 2018 21:51:38 +0200 [thread overview]
Message-ID: <20180426215138.05b4df99@bbrezillon> (raw)
In-Reply-To: <20180421180043.18366-1-miquel.raynal@bootlin.com>
On Sat, 21 Apr 2018 20:00:32 +0200
Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> Hello all,
>
> In order to remove the limitation that prevents dynamic allocations
> during the identification phase (nand_scan_ident()), we need to get rid
> of the nand_scan_ident()/nand_scan_tail() calls from drivers and only
> export nand_scan().
>
> This series prepares the migration to nand_scan() by first fixing (and
> enhancing some times) the probe function error path of the drivers that
> do not use nand_scan() yet.
>
> The three main problems addressed in the series are:
> 0/ unproper error path (fuzzy, styling issues, undescriptive goto's).
> 1/ a wrong error path that does not free/disable the resources
> correctly.
> 2/ nand_cleanup() is not called upon error after a successful
> nand_scan_tail().
> 3/ nand_release() is called instead of nand_cleanup(). nand_release()
> does call nand_cleanup() and also mtd_device_unregister(), which
> should not be called while mtd_device_register() as succeeded.
>
> Thanks,
> Miquèl
Applied.
Thanks,
Boris
>
> Changes since v2:
> =================
> * Reworked the few remaining patches that needed small changes.
> * docg4: changed the commit message as proposed.
> * fsl_elbc/fsl_ifc: moved the wrong nand_release() out of the
> 'remove' function to avoid double free possible issues.
> * fsmc/hisi504/lpc32xx_mlc/lpc32xx_slc: split the changes in two
> commits, one to fix the goto labels/style, one that actually fixes
> the function.
>
> Changes since v1:
> =================
> * Extracted only the patches fixing the error path from the first huge
> series (50+ patches) that also converted the drivers to nand_scan().
> * Changed wrong nand_release() calls to nand_cleanup().
>
>
> Miquel Raynal (11):
> mtd: rawnand: docg4: fix the probe function error path
> mtd: rawnand: fsl_elbc: fix probe function error path
> mtd: rawnand: fsl_ifc: fix probe function error path
> mtd: rawnand: fsmc: clean the probe function style
> mtd: rawnand: fsmc: fix the probe function error path
> mtd: rawnand: hisi504: clean the probe function error path
> mtd: rawnand: hisi504: fix the probe function error path
> mtd: rawnand: lpc32xx_mlc: clean the probe function
> mtd: rawnand: lpc32xx_mlc: fix the probe function error path
> mtd: rawnand: lpc32xx_slc: clean the probe function
> mtd: rawnand: lpc32xx_slc: fix the probe function error path
>
> drivers/mtd/nand/raw/docg4.c | 22 +++++++++++----------
> drivers/mtd/nand/raw/fsl_elbc_nand.c | 13 ++++++++----
> drivers/mtd/nand/raw/fsl_ifc_nand.c | 12 +++++++++---
> drivers/mtd/nand/raw/fsmc_nand.c | 27 +++++++++++++------------
> drivers/mtd/nand/raw/hisi504_nand.c | 35 ++++++++++++---------------------
> drivers/mtd/nand/raw/lpc32xx_mlc.c | 38 +++++++++++++++++++-----------------
> drivers/mtd/nand/raw/lpc32xx_slc.c | 26 ++++++++++++------------
> 7 files changed, 91 insertions(+), 82 deletions(-)
>
prev parent reply other threads:[~2018-04-26 19:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-21 18:00 [PATCH v3 00/11] Fix NAND controllers probe functions error path Miquel Raynal
2018-04-21 18:00 ` [PATCH v3 01/11] mtd: rawnand: docg4: fix the probe function " Miquel Raynal
2018-07-04 10:07 ` Miquel Raynal
2018-04-21 18:00 ` [PATCH v3 02/11] mtd: rawnand: fsl_elbc: fix " Miquel Raynal
2018-04-21 18:00 ` [PATCH v3 03/11] mtd: rawnand: fsl_ifc: " Miquel Raynal
2018-04-21 18:00 ` [PATCH v3 04/11] mtd: rawnand: fsmc: clean the probe function style Miquel Raynal
2018-04-21 18:00 ` [PATCH v3 05/11] mtd: rawnand: fsmc: fix the probe function error path Miquel Raynal
2018-04-21 18:00 ` [PATCH v3 06/11] mtd: rawnand: hisi504: clean " Miquel Raynal
2018-04-21 18:00 ` [PATCH v3 07/11] mtd: rawnand: hisi504: fix " Miquel Raynal
2018-04-21 18:00 ` [PATCH v3 08/11] mtd: rawnand: lpc32xx_mlc: clean the probe function Miquel Raynal
2018-04-21 18:00 ` [PATCH v3 09/11] mtd: rawnand: lpc32xx_mlc: fix the probe function error path Miquel Raynal
2018-04-21 18:00 ` [PATCH v3 10/11] mtd: rawnand: lpc32xx_slc: clean the probe function Miquel Raynal
2018-04-26 17:26 ` Boris Brezillon
2018-04-21 18:00 ` [PATCH v3 11/11] mtd: rawnand: lpc32xx_slc: fix the probe function error path Miquel Raynal
2018-04-26 19:51 ` Boris Brezillon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180426215138.05b4df99@bbrezillon \
--to=boris.brezillon@bootlin.com \
--cc=computersforpeace@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marek.vasut@gmail.com \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=slemieux.tyco@gmail.com \
--cc=vz@mleia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox