[PATCH 0/6] MTD: xway: updates from OpenWrt/LEDE

John Crispin john at phrozen.org
Tue Jun 7 03:12:27 PDT 2016



On 07/06/2016 11:48, Boris Brezillon wrote:
> On Sun,  5 Jun 2016 23:20:03 +0200
> Hauke Mehrtens <hauke at hauke-m.de> wrote:
> 
>> These patches are in OpenWrt for years now and should go upstream. They 
>> are fixing some problems in the NAND driver.
> 
> Just had a closer look at the xway NAND controller driver, and it's
> just a big pile of hacks :-(. I'll take those patches if nobody is
> willing to maintain this driver, but honestly, I'd prefer a complete
> rework of the driver.
> 

Hi Boris,

it is indeed a horrific pile of doo doo. it has grown historically over
a few years and then became sort of abandoned. i have been keeping it
artificially alive inside openwrt as we have users with boards that have
nand. i dont even own a lantiq board with nand, so patches were sort of
merged on cruise control and with compile testing only.

the SoCs have 2 ways of controlling the nand core. the easy one is this,
which is basically nothing more than a nand flash aware 16bit
intel/hitachi bus interafec called EBU. There is a more advanced dma
based way of doing nand I/O though.

ideally there should be a driver for the so called "high speed nand"
interface which would allow us to nuke this one.

	John

>>
>> Hauke Mehrtens (1):
>>   MTD: xway: add some more documentation
>>
>> John Crispin (5):
>>   MTD: xway: fix invalid operator
>>   MTD: xway: the latched command should be persistent
>>   MTD: xway: remove endless loop
>>   MTD: xway: add missing write_buf and read_buf to nand driver
>>   MTD: xway: fix nand locking
>>
>>  drivers/mtd/nand/xway_nand.c | 67 +++++++++++++++++++++++++++++++++-----------
>>  1 file changed, 51 insertions(+), 16 deletions(-)
>>
> 
> 
> 



More information about the linux-mtd mailing list