From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Boris Brezillon <boris.brezillon@bootlin.com>
Cc: Andrew Lunn <andrew@lunn.ch>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Rich Felker <dalias@libc.org>,
linux-doc@vger.kernel.org, Tony Lindgren <tony@atomide.com>,
linux-mips@linux-mips.org, Stefan Agner <stefan@agner.ch>,
Masahiro Yamada <yamada.masahiro@socionext.com>,
Mans Rullgard <mans@mansr.com>,
linux-mtd@lists.infradead.org,
Robert Jarzmik <robert.jarzmik@free.fr>,
Jason Cooper <jason@lakedaemon.net>,
devel@driverdev.osuosl.org,
Maxime Ripard <maxime.ripard@bootlin.com>,
Maxim Levitsky <maximlevitsky@gmail.com>,
Yoshinori Sato <ysato@users.sourceforge.jp>,
Aaro Koskinen <aaro.koskinen@iki.fi>,
Richard Weinberger <richard@nod.at>,
Gregory Clement <gregory.clement@bootlin.com>,
linux-sh@vger.kernel.org, Lukasz Majewski <lukma@denx.de>,
Neil Armstrong <narmstrong@baylibre.com>,
Marek Vasut <marek.vasut@gmail.com>, Chen-Yu Tsai <wens@csie.org>,
NXP
Subject: Re: [PATCH v2 00/23] mtd: rawnand: Stop passing mtd_info to drivers
Date: Thu, 6 Sep 2018 22:15:00 +0200 [thread overview]
Message-ID: <20180906221500.740fa928@xps13> (raw)
In-Reply-To: <20180906120535.21255-1-boris.brezillon@bootlin.com>
Hi Boris,
Boris Brezillon <boris.brezillon@bootlin.com> wrote on Thu, 6 Sep 2018
14:05:12 +0200:
> Hello,
>
> This is the first set of patches aiming at cleaning the raw NAND API.
>
> This one focuses on inconsistencies we have in the API + the nand_chip
> and nand_ecc_ctrl interfaces. Some functions/hooks are passed a
> nand_chip object, some are passed an mtd_info object and some are
> passed both.
>
> Since mtd_info can be extracted from nand_chip, we can simply always
> pass a nand_chip and make things consistent. Hopefully with these
> changes merged we'll stop seeing new drivers reproducing the same
> mistake (passing both mtd_info and nand_chip or using mtd_info where
> nand_chip is more appropriate).
>
> For those who want to see what's in the pipe, here is a branch [1]
> containing all the cleanups I plan to merge.
>
> Not much has changed in this v2. I just rebased on top of nand/next,
> fixed typos, added A-b/R-b tags, and that's all.
>
> Regards,
>
> Boris
>
> [1]https://github.com/bbrezillon/linux-0day/commits/nand/api-cleanup
>
> Boris Brezillon (23):
> mtd: rawnand: plat_nand: Pass a nand_chip object to all
> platform_nand_ctrl hooks
> mtd: rawnand: Pass a nand_chip object to nand_scan()
> mtd: rawnand: Pass a nand_chip object to nand_release()
> mtd: rawnand: Pass a nand_chip object to nand_wait_ready()
> mtd: rawnand: Pass a nand_chip object to ecc->hwctl()
> mtd: rawnand: Pass a nand_chip object to ecc->calculate()
> mtd: rawnand: Pass a nand_chip object to ecc->correct()
> mtd: rawnand: Pass a nand_chip object to ecc->read_xxx() hooks
> mtd: rawnand: Pass a nand_chip object to ecc->write_xxx() hooks
> mtd: rawnand: Pass a nand_chip object to chip->read_xxx() hooks
> mtd: rawnand: Pass a nand_chip object to chip->write_xxx() hooks
> mtd: rawnand: Pass a nand_chip object to chip->select_chip()
> mtd: rawnand: Pass a nand_chip object to chip->block_xxx() hooks
> mtd: rawnand: Pass a nand_chip object to chip->cmd_ctrl()
> mtd: rawnand: Pass a nand_chip object to chip->dev_ready()
> mtd: rawnand: Pass a nand_chip object to chip->cmdfunc()
> mtd: rawnand: Pass a nand_chip object to chip->waitfunc()
> mtd: rawnand: Pass a nand_chip object to chip->erase()
> mtd: rawnand: Pass a nand_chip object to chip->{get,set}_features()
> mtd: rawnand: Pass a nand_chip object to chip->setup_read_retry()
> mtd: rawnand: Pass a nand_chip object to chip->setup_data_interface()
> mtd: rawnand: Pass a nand_chip object to all nand_xxx_bbt() helpers
> mtd: rawnand: Pass a nand_chip object nand_erase_nand()
>
> Documentation/driver-api/mtdnand.rst | 4 +-
> arch/arm/mach-ep93xx/snappercl15.c | 7 +-
> arch/arm/mach-ep93xx/ts72xx.c | 7 +-
> arch/arm/mach-imx/mach-qong.c | 11 +-
> arch/arm/mach-ixp4xx/ixdp425-setup.c | 3 +-
> arch/arm/mach-omap1/board-fsample.c | 2 +-
> arch/arm/mach-omap1/board-h2.c | 2 +-
> arch/arm/mach-omap1/board-h3.c | 2 +-
> arch/arm/mach-omap1/board-nand.c | 3 +-
> arch/arm/mach-omap1/board-perseus2.c | 2 +-
> arch/arm/mach-omap1/common.h | 2 +-
> arch/arm/mach-orion5x/ts78xx-setup.c | 18 +-
> arch/arm/mach-pxa/balloon3.c | 8 +-
> arch/arm/mach-pxa/em-x270.c | 5 +-
> arch/arm/mach-pxa/palmtx.c | 5 +-
> arch/mips/alchemy/devboards/db1200.c | 5 +-
> arch/mips/alchemy/devboards/db1300.c | 5 +-
> arch/mips/alchemy/devboards/db1550.c | 5 +-
> arch/mips/netlogic/xlr/platform-flash.c | 4 +-
> arch/mips/pnx833x/common/platform.c | 3 +-
> arch/mips/rb532/devices.c | 5 +-
> arch/sh/boards/mach-migor/setup.c | 6 +-
> drivers/mtd/nand/raw/ams-delta.c | 24 +-
> drivers/mtd/nand/raw/atmel/nand-controller.c | 74 ++-
> drivers/mtd/nand/raw/au1550nd.c | 70 ++-
> drivers/mtd/nand/raw/bcm47xxnflash/main.c | 2 +-
> drivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c | 38 +-
> drivers/mtd/nand/raw/brcmnand/brcmnand.c | 78 +--
> drivers/mtd/nand/raw/cafe_nand.c | 56 +--
> drivers/mtd/nand/raw/cmx270_nand.c | 20 +-
> drivers/mtd/nand/raw/cs553x_nand.c | 33 +-
> drivers/mtd/nand/raw/davinci_nand.c | 59 +--
> drivers/mtd/nand/raw/denali.c | 87 ++--
> drivers/mtd/nand/raw/diskonchip.c | 116 ++---
> drivers/mtd/nand/raw/docg4.c | 83 ++--
> drivers/mtd/nand/raw/fsl_elbc_nand.c | 52 +-
> drivers/mtd/nand/raw/fsl_ifc_nand.c | 46 +-
> drivers/mtd/nand/raw/fsl_upm.c | 34 +-
> drivers/mtd/nand/raw/fsmc_nand.c | 42 +-
> drivers/mtd/nand/raw/gpio.c | 13 +-
> drivers/mtd/nand/raw/gpmi-nand/gpmi-lib.c | 3 +-
> drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 99 ++--
> drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h | 2 +-
> drivers/mtd/nand/raw/hisi504_nand.c | 44 +-
> drivers/mtd/nand/raw/jz4740_nand.c | 39 +-
> drivers/mtd/nand/raw/jz4780_nand.c | 30 +-
> drivers/mtd/nand/raw/lpc32xx_mlc.c | 47 +-
> drivers/mtd/nand/raw/lpc32xx_slc.c | 67 ++-
> drivers/mtd/nand/raw/marvell_nand.c | 74 ++-
> drivers/mtd/nand/raw/mpc5121_nfc.c | 40 +-
> drivers/mtd/nand/raw/mtk_nand.c | 81 ++-
> drivers/mtd/nand/raw/mxc_nand.c | 85 ++--
> drivers/mtd/nand/raw/nand_base.c | 606 ++++++++++-------------
> drivers/mtd/nand/raw/nand_bbt.c | 21 +-
> drivers/mtd/nand/raw/nand_bch.c | 10 +-
> drivers/mtd/nand/raw/nand_ecc.c | 14 +-
> drivers/mtd/nand/raw/nand_hynix.c | 12 +-
> drivers/mtd/nand/raw/nand_micron.c | 16 +-
> drivers/mtd/nand/raw/nand_toshiba.c | 10 +-
> drivers/mtd/nand/raw/nandsim.c | 28 +-
> drivers/mtd/nand/raw/ndfc.c | 25 +-
> drivers/mtd/nand/raw/nuc900_nand.c | 27 +-
> drivers/mtd/nand/raw/omap2.c | 148 +++---
> drivers/mtd/nand/raw/orion_nand.c | 14 +-
> drivers/mtd/nand/raw/oxnas_nand.c | 19 +-
> drivers/mtd/nand/raw/pasemi_nand.c | 19 +-
> drivers/mtd/nand/raw/plat_nand.c | 6 +-
> drivers/mtd/nand/raw/qcom_nandc.c | 52 +-
> drivers/mtd/nand/raw/r852.c | 54 +-
> drivers/mtd/nand/raw/s3c2410.c | 72 +--
> drivers/mtd/nand/raw/sh_flctl.c | 40 +-
> drivers/mtd/nand/raw/sharpsl.c | 24 +-
> drivers/mtd/nand/raw/sm_common.c | 5 +-
> drivers/mtd/nand/raw/socrates_nand.c | 32 +-
> drivers/mtd/nand/raw/sunxi_nand.c | 82 ++-
> drivers/mtd/nand/raw/tango_nand.c | 67 ++-
> drivers/mtd/nand/raw/tegra_nand.c | 36 +-
> drivers/mtd/nand/raw/tmio_nand.c | 53 +-
> drivers/mtd/nand/raw/txx9ndfmc.c | 38 +-
> drivers/mtd/nand/raw/vf610_nfc.c | 43 +-
> drivers/mtd/nand/raw/xway_nand.c | 27 +-
> drivers/staging/mt29f_spinand/mt29f_spinand.c | 33 +-
> include/linux/mtd/nand_bch.h | 11 +-
> include/linux/mtd/nand_ecc.h | 8 +-
> include/linux/mtd/rawnand.h | 142 +++---
> 85 files changed, 1617 insertions(+), 1829 deletions(-)
>
Series applied to nand/next.
Thanks,
Miquèl
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
prev parent reply other threads:[~2018-09-06 20:15 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-06 12:05 [PATCH v2 00/23] mtd: rawnand: Stop passing mtd_info to drivers Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 01/23] mtd: rawnand: plat_nand: Pass a nand_chip object to all platform_nand_ctrl hooks Boris Brezillon
[not found] ` <20180906120535.21255-2-boris.brezillon-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>
2018-09-06 17:37 ` Paul Burton
2018-09-06 12:05 ` [PATCH v2 02/23] mtd: rawnand: Pass a nand_chip object to nand_scan() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 03/23] mtd: rawnand: Pass a nand_chip object to nand_release() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 04/23] mtd: rawnand: Pass a nand_chip object to nand_wait_ready() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 05/23] mtd: rawnand: Pass a nand_chip object to ecc->hwctl() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 06/23] mtd: rawnand: Pass a nand_chip object to ecc->calculate() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 07/23] mtd: rawnand: Pass a nand_chip object to ecc->correct() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 08/23] mtd: rawnand: Pass a nand_chip object to ecc->read_xxx() hooks Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 09/23] mtd: rawnand: Pass a nand_chip object to ecc->write_xxx() hooks Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 10/23] mtd: rawnand: Pass a nand_chip object to chip->read_xxx() hooks Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 11/23] mtd: rawnand: Pass a nand_chip object to chip->write_xxx() hooks Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 12/23] mtd: rawnand: Pass a nand_chip object to chip->select_chip() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 13/23] mtd: rawnand: Pass a nand_chip object to chip->block_xxx() hooks Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 14/23] mtd: rawnand: Pass a nand_chip object to chip->cmd_ctrl() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 15/23] mtd: rawnand: Pass a nand_chip object to chip->dev_ready() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 16/23] mtd: rawnand: Pass a nand_chip object to chip->cmdfunc() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 17/23] mtd: rawnand: Pass a nand_chip object to chip->waitfunc() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 18/23] mtd: rawnand: Pass a nand_chip object to chip->erase() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 19/23] mtd: rawnand: Pass a nand_chip object to chip->{get, set}_features() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 20/23] mtd: rawnand: Pass a nand_chip object to chip->setup_read_retry() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 21/23] mtd: rawnand: Pass a nand_chip object to chip->setup_data_interface() Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 22/23] mtd: rawnand: Pass a nand_chip object to all nand_xxx_bbt() helpers Boris Brezillon
2018-09-06 12:05 ` [PATCH v2 23/23] mtd: rawnand: Pass a nand_chip object nand_erase_nand() Boris Brezillon
2018-09-06 20:15 ` Miquel Raynal [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=20180906221500.740fa928@xps13 \
--to=miquel.raynal@bootlin.com \
--cc=aaro.koskinen@iki.fi \
--cc=alexandre.belloni@bootlin.com \
--cc=andrew@lunn.ch \
--cc=boris.brezillon@bootlin.com \
--cc=dalias@libc.org \
--cc=devel@driverdev.osuosl.org \
--cc=gregory.clement@bootlin.com \
--cc=jason@lakedaemon.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-sh@vger.kernel.org \
--cc=lukma@denx.de \
--cc=mans@mansr.com \
--cc=marek.vasut@gmail.com \
--cc=maxime.ripard@bootlin.com \
--cc=maximlevitsky@gmail.com \
--cc=narmstrong@baylibre.com \
--cc=richard@nod.at \
--cc=robert.jarzmik@free.fr \
--cc=stefan@agner.ch \
--cc=tony@atomide.com \
--cc=wens@csie.org \
--cc=yamada.masahiro@socionext.com \
--cc=ysato@users.sourceforge.jp \
/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;
as well as URLs for NNTP newsgroup(s).