Re: [PATCH] mtd: rawnand: driver for Mediatek MT7621 SoC NAND flash controller

From: Andrey Jr. Melnikov
Date: Sun Nov 10 2019 - 13:19:01 EST


In gmane.linux.drivers.mtd Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx> wrote:
> +Richard and Miquel

> On Thu, 07 Nov 2019 09:20:53 +0000
> Renà van Dorst <opensource@xxxxxxxxxx> wrote:

> > Quoting gerg@xxxxxxxxxx:
> >
> > > From: Greg Ungerer <gerg@xxxxxxxxxx>

[..skipp..]

> > +CC DENG Qingfang, Chuanhong Guo, Weijie Gao to the list.
> >
> > Hi Greg,
> >
> > Thanks for posting this driver.
> >
> > But I would like to mention that the openwrt community is currently
> > working on a
> > new version which is based a newer version of the MediaTek vendor driver.
> > That version is currently targeted for the openwrt 4.19 kernel.
> > See full pull request [1] and NAND driver patch [2]
> >
> > It would be a shame if duplicate work has been done.

> Sorry, but if there's duplicate effort that's kinda your (OpenWRT folks)
> fault: since when OpenWRT is the central point for kernel drivers?
> Correct me if I'm wrong, but I don't remember seeing this driver posted
> to the MTD ML. Plus, the driver you're pointing to still implements the
> legacy hooks and is based on 4.19, and it has been decided that all new
> NAND controller drivers should implement the new ->exec_op() hook
> instead.

I'm already sent to Greg Ungerer 5.3 variant of this patch.
but it:
- PIO only (old driver from 3.4.x kernel have "DMA")
- strange SLOW (4.19 on same hardware is faster)

you may grab it from http://lc.vrtpro.ru/lede/5.3-new-mtk7621-nand-driver.patch