[RFC PATCH 0/2] mtd: nand: optimize subpage writes

Pekon Gupta pekon at ti.com
Mon Jun 30 03:33:59 PDT 2014


This patch cleans and fixes nand_write_subpage_hwecc() for devices supporting
subpages. Devices supporting subpage write must support NAND_CMD_RNDIN(0x80)

As per datasheet following devices support above command
Macronix	MX30LF1G08	Figure 13. AC Waveforms for Random Data In (For Page Program)
Samsung		K9F1G08U0E	Figure 4.9 Page Program Operation with Random Data Input
Micron		MT29F[2G|4G]xx	Section RANDOM DATA INPUT 85h
Spansion	S34ML[xx]G2	Figure 6.11 Page Program Operation with Random Data Input
Toshiba		TC58NVG1S3ETAI0	Section: Random Column Address Change in Auto Page Program Operation

- This series needs testing with multiple drivers and above devices to check
  full compliance and working of subpage writes.
- Use 'ubiformat -s <subpage-size>' option to format a UBIFS image on subpages
  supporting device

Pekon Gupta (2):
  mtd: nand: clean nand_write_subpage_hwecc to reduce local variables
  mtd: nand: refactor nand_write_subpage_hwecc to write only relevant
    subpage data

 drivers/mtd/nand/nand_base.c | 51 +++++++++++++++++++-------------------------
 1 file changed, 22 insertions(+), 29 deletions(-)

-- 
1.8.5.1.163.gd7aced9




More information about the linux-mtd mailing list