From: Schrempf Frieder <frieder.schrempf@kontron.de> To: Miquel Raynal <miquel.raynal@bootlin.com>, Boris Brezillon <bbrezillon@kernel.org>, Richard Weinberger <richard@nod.at>, David Woodhouse <dwmw2@infradead.org>, Brian Norris <computersforpeace@gmail.com>, "Marek Vasut" <marek.vasut@gmail.com>, Tudor Ambarus <Tudor.Ambarus@microchip.com> Cc: Vignesh R <vigneshr@ti.com>, Julien Su <juliensu@mxic.com.tw>, Masahiro Yamada <yamada.masahiro@socionext.com>, "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Mason Yang <masonccyang@mxic.com.tw>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org> Subject: Re: [PATCH 04/15] mtd: spinand: Implement mtd->_max_bad_blocks Date: Sat, 23 Feb 2019 13:05:10 +0000 [thread overview] Message-ID: <d2365b78-d4cf-e210-f443-55f33b942db9@kontron.de> (raw) In-Reply-To: <20190221091527.20497-5-miquel.raynal@bootlin.com> On 21.02.19 10:15, Miquel Raynal wrote: > From: Boris Brezillon <bbrezillon@kernel.org> > > We just have to use nanddev_mtd_max_bad_blocks(). > > Signed-off-by: Boris Brezillon <bbrezillon@kernel.org> > Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de> > --- > drivers/mtd/nand/spi/core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c > index 2ae4237a586e..ed5e340dff51 100644 > --- a/drivers/mtd/nand/spi/core.c > +++ b/drivers/mtd/nand/spi/core.c > @@ -1040,6 +1040,7 @@ static int spinand_init(struct spinand_device *spinand) > mtd->_block_markbad = spinand_mtd_block_markbad; > mtd->_block_isreserved = spinand_mtd_block_isreserved; > mtd->_erase = spinand_mtd_erase; > + mtd->_max_bad_blocks = nanddev_mtd_max_bad_blocks; > > if (spinand->eccinfo.ooblayout) > mtd_set_ooblayout(mtd, spinand->eccinfo.ooblayout); > ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
WARNING: multiple messages have this Message-ID (diff)
From: Schrempf Frieder <frieder.schrempf@kontron.de> To: Miquel Raynal <miquel.raynal@bootlin.com>, Boris Brezillon <bbrezillon@kernel.org>, Richard Weinberger <richard@nod.at>, David Woodhouse <dwmw2@infradead.org>, Brian Norris <computersforpeace@gmail.com>, "Marek Vasut" <marek.vasut@gmail.com>, Tudor Ambarus <Tudor.Ambarus@microchip.com> Cc: Vignesh R <vigneshr@ti.com>, Julien Su <juliensu@mxic.com.tw>, Masahiro Yamada <yamada.masahiro@socionext.com>, "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Mason Yang <masonccyang@mxic.com.tw>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org> Subject: Re: [PATCH 04/15] mtd: spinand: Implement mtd->_max_bad_blocks Date: Sat, 23 Feb 2019 13:05:10 +0000 [thread overview] Message-ID: <d2365b78-d4cf-e210-f443-55f33b942db9@kontron.de> (raw) In-Reply-To: <20190221091527.20497-5-miquel.raynal@bootlin.com> On 21.02.19 10:15, Miquel Raynal wrote: > From: Boris Brezillon <bbrezillon@kernel.org> > > We just have to use nanddev_mtd_max_bad_blocks(). > > Signed-off-by: Boris Brezillon <bbrezillon@kernel.org> > Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de> > --- > drivers/mtd/nand/spi/core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c > index 2ae4237a586e..ed5e340dff51 100644 > --- a/drivers/mtd/nand/spi/core.c > +++ b/drivers/mtd/nand/spi/core.c > @@ -1040,6 +1040,7 @@ static int spinand_init(struct spinand_device *spinand) > mtd->_block_markbad = spinand_mtd_block_markbad; > mtd->_block_isreserved = spinand_mtd_block_isreserved; > mtd->_erase = spinand_mtd_erase; > + mtd->_max_bad_blocks = nanddev_mtd_max_bad_blocks; > > if (spinand->eccinfo.ooblayout) > mtd_set_ooblayout(mtd, spinand->eccinfo.ooblayout); > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-02-23 13:05 UTC|newest] Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-02-21 9:15 [PATCH 00/15] mtd: rawnand: 5th batch of cleanups Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-21 9:15 ` [PATCH 01/15] mtd: nand: Add max_bad_eraseblocks_per_lun info to memorg Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:03 ` Schrempf Frieder 2019-02-23 13:03 ` Schrempf Frieder 2019-02-21 9:15 ` [PATCH 02/15] mtd: nand: Add an helper returning the number of eraseblocks per target Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:04 ` Schrempf Frieder 2019-02-23 13:04 ` Schrempf Frieder 2019-02-21 9:15 ` [PATCH 03/15] mtd: nand: Add an helper to retrieve the number of pages " Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:04 ` Schrempf Frieder 2019-02-23 13:04 ` Schrempf Frieder 2019-02-21 9:15 ` [PATCH 04/15] mtd: spinand: Implement mtd->_max_bad_blocks Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:05 ` Schrempf Frieder [this message] 2019-02-23 13:05 ` Schrempf Frieder 2019-02-21 9:15 ` [PATCH 05/15] mtd: rawnand: Use nand_to_mtd() in nand_{set, get}_flash_node() Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:05 ` Schrempf Frieder 2019-02-23 13:05 ` Schrempf Frieder 2019-02-21 9:15 ` [PATCH 06/15] mtd: rawnand: Prepare things to reuse the generic NAND layer Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:06 ` Schrempf Frieder 2019-02-23 13:06 ` Schrempf Frieder 2019-02-21 9:15 ` [PATCH 07/15] mtd: rawnand: Fill memorg during detection Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:00 ` Schrempf Frieder 2019-02-23 13:00 ` Schrempf Frieder 2019-02-26 13:09 ` Miquel Raynal 2019-02-26 13:09 ` Miquel Raynal 2019-02-21 9:15 ` [PATCH 08/15] mtd: rawnand: Initialize the nand_device object Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:20 ` Schrempf Frieder 2019-02-23 13:20 ` Schrempf Frieder 2019-02-21 9:15 ` [PATCH 09/15] mtd: rawnand: Provide an helper to get chip->data_buf Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:13 ` Schrempf Frieder 2019-02-23 13:13 ` Schrempf Frieder 2019-02-21 9:15 ` [PATCH 10/15] mtd: rawnand: Move all page cache related fields to a sub-struct Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:13 ` Schrempf Frieder 2019-02-23 13:13 ` Schrempf Frieder 2019-02-21 9:15 ` [PATCH 11/15] mtd: rawnand: Use nanddev_mtd_max_bad_blocks() Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:14 ` Schrempf Frieder 2019-02-23 13:14 ` Schrempf Frieder 2019-02-21 9:15 ` [PATCH 12/15] mtd: rawnand: Get rid of chip->bits_per_cell Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:14 ` Schrempf Frieder 2019-02-23 13:14 ` Schrempf Frieder 2019-02-21 9:15 ` [PATCH 13/15] mtd: rawnand: Get rid of chip->chipsize Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:01 ` Schrempf Frieder 2019-02-23 13:01 ` Schrempf Frieder 2019-02-21 9:15 ` [PATCH 14/15] mtd: rawnand: Get rid of chip->numchips Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:15 ` Schrempf Frieder 2019-02-23 13:15 ` Schrempf Frieder 2019-02-21 9:15 ` [PATCH 15/15] mtd: rawnand: Get rid of chip->ecc_{strength,step}_ds Miquel Raynal 2019-02-21 9:15 ` Miquel Raynal 2019-02-23 13:15 ` Schrempf Frieder 2019-02-23 13:15 ` Schrempf Frieder
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=d2365b78-d4cf-e210-f443-55f33b942db9@kontron.de \ --to=frieder.schrempf@kontron.de \ --cc=Tudor.Ambarus@microchip.com \ --cc=bbrezillon@kernel.org \ --cc=computersforpeace@gmail.com \ --cc=dwmw2@infradead.org \ --cc=juliensu@mxic.com.tw \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-mtd@lists.infradead.org \ --cc=marek.vasut@gmail.com \ --cc=masonccyang@mxic.com.tw \ --cc=miquel.raynal@bootlin.com \ --cc=richard@nod.at \ --cc=thomas.petazzoni@bootlin.com \ --cc=vigneshr@ti.com \ --cc=yamada.masahiro@socionext.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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.