All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Mack <daniel@zonque.org>
To: Miquel Raynal <miquel.raynal@bootlin.com>,
	Boris Brezillon <boris.brezillon@bootlin.com>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>,
	Robert Jarzmik <robert.jarzmik@free.fr>,
	Richard Weinberger <richard@nod.at>,
	linux-mtd@lists.infradead.org,
	David Woodhouse <dwmw2@infradead.org>,
	Brian Norris <computersforpeace@gmail.com>,
	Marek Vasut <marek.vasut@gmail.com>,
	Mike Dunn <mikedunn@newsguy.com>,
	Sergey Larin <cerg2010cerg2010@mail.ru>
Subject: Re: [RFC PATCH] mtd: rawnand: Remove docg4
Date: Tue, 31 Jul 2018 10:31:07 +0200	[thread overview]
Message-ID: <a101a70c-db8f-a1d7-1c34-e805f32dee26@zonque.org> (raw)
In-Reply-To: <20180731102035.018ad7d0@xps13>

On Tuesday, July 31, 2018 10:20 AM, Miquel Raynal wrote:
> Hi Boris,
> 
> Boris Brezillon <boris.brezillon@bootlin.com> wrote on Mon, 30 Jul 2018
> 22:13:41 +0200:
> 
>> The diskonchip G4 driver does not fit very well in the raw/parallel
>> NAND framework simply because such chips have an internal controller
>> translating DoC-specific commands into NAND ones.
>>
>> Keeping such a driver in the raw NAND framework is a real burden for
>> NAND maintainers.
>>
>> Not to mention that some part in this drivers are a bit worrisome:
>>
>> - writes are done by subpages, even though we're interfacing with an MLC
>>    chip which are known to not support subpage writes very well (it might
>>    be that the FTL handles the complexity for us though)
>>
>> - some part of the code are simply ignoring return codes of function that
>>    can fail in a few occasions
>>
>> - there's a hack to support OOB writes when no data is provided. This
>>    operation is not supported by the chip and should have been rejected,
>>    and nandwrite and other userspace tools should have been patched to
>>    deal with such devices
>>
>> - the driver is apparently broken when ignore_badblocks module param
>>    is not set to 1 and nobody noticed that (don't know since when this
>>    is the case, but it's not a recent change)
>>    http://lists.infradead.org/pipermail/linux-mtd/2018-July/082472.html
>>
>> Add to that the fact that we already have a docg3 driver in
>> drivers/mtd/devices/docg3.c and, looking at the code (and regs), it
>> seems docg3 and docg4 have a lot in common (even the author of this
>> driver seemed to have realized that interfacing with the raw NAND
>> framework might have been a bad idea
>> http://lists.infradead.org/pipermail/linux-mtd/2012-January/039517.html).
>>
>> For all these reasons, I'm proposing to remove this driver. If anyone
>> ever wants to add support for this chip back, I'd suggest extending
>> the docg3 driver instead of adding a completely new driver.
>>
>> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
>> Cc: Mike Dunn <mikedunn@newsguy.com>
>> Cc: Robert Jarzmik <robert.jarzmik@free.fr>
>> Cc: Sergey Larin <cerg2010cerg2010@mail.ru>
>> ---
> 
> I do agree in removing this driver.
> 
> I just checked for docg4 references and it looks like palmeo.c board
> file has some code related to it, enclosed in a
> 
>          #if IS_ENABLED(CONFIG_MTD_NAND_DOCG4)
> 
> Besides the fact that it is the only user, that's probably something
> we should also remove.

Thanks for the heads-up.

Yes, it seems reasonable to remove it, if that helps you in the MTD 
area. These boards are not really maintained by anybody. Robert and I 
will gradually move them over to DT over the next releases, and drop 
things that are no longer supported. They can then be added back by 
anyone with such hardware at hand.


Thanks,
Daniel

  reply	other threads:[~2018-07-31  8:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-30 20:13 [RFC PATCH] mtd: rawnand: Remove docg4 Boris Brezillon
2018-07-31  8:20 ` Miquel Raynal
2018-07-31  8:31   ` Daniel Mack [this message]
2018-07-31  8:32   ` Boris Brezillon

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=a101a70c-db8f-a1d7-1c34-e805f32dee26@zonque.org \
    --to=daniel@zonque.org \
    --cc=boris.brezillon@bootlin.com \
    --cc=cerg2010cerg2010@mail.ru \
    --cc=computersforpeace@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=haojian.zhuang@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=marek.vasut@gmail.com \
    --cc=mikedunn@newsguy.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=richard@nod.at \
    --cc=robert.jarzmik@free.fr \
    /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 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.