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

Hauke Mehrtens hauke at hauke-m.de
Mon Jun 20 14:32:06 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:
v4:
 - do not call NAND reset manually

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: remove manual reset
  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 | 231 ++++++++++++++++++++++++++-----------------
 2 files changed, 141 insertions(+), 91 deletions(-)

-- 
2.8.1




More information about the linux-mtd mailing list