[PATCH v4 0/8] MTD: xway: fix driver

Hauke Mehrtens hauke at hauke-m.de
Sun Jun 19 10:02:57 PDT 2016


Without these patches the driver does not work for me.
Some of these patches are in OpenWrt for years now and should go 
upstream. In addition this converts it from some hack with the 
plat_nand driver to a normal platform driver.

I will try to convert the spinlock to a mutex in a separate patch 
because this affects other parts of the kernel. 

changes since:
v3:
 - update some commit comments
 - reorder last 2 patches
 - do not set ->IO_ADDR_R/W any more

v2:
 - reorder patches
 - use of_property_read_u32()
 - rework error handling in xway_nand_probe()
 - simplify latched command handling
 - remove xway_reset_chip()
 - remove cast of nandaddr
 - add nandaddr to xway_nand_data
 - add csflags to xway_nand_data

v1:
 - convert to normal platform driver
 - do not use global variable xway_latchcmd
 - use mtd_to_nand()


Hauke Mehrtens (6):
  mtd: nand: xway: add some more documentation
  mtd: nand: xway: convert to normal platform driver
  mtd: nand: xway: use generic reset function
  mtd: nand: xway: extract read and write function
  mtd: nand: xway: add missing write_buf and read_buf to nand driver
  mtd: nand: xway: add nandaddr to own struct

John Crispin (2):
  mtd: nand: xway: Avoid messing up with IO_ADDR_W in ->cmd_ctrl()
  mtd: nand: xway: fix nand locking

 drivers/mtd/nand/Kconfig     |   1 -
 drivers/mtd/nand/xway_nand.c | 232 ++++++++++++++++++++++++++-----------------
 2 files changed, 143 insertions(+), 90 deletions(-)

-- 
2.8.1




More information about the linux-mtd mailing list