public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Query mtd-utils v1.4.9 : flash_erase.c
@ 2012-04-05  9:21 Kushwaha Prabhakar-B32579
  2012-04-05 20:58 ` Brian Norris
  0 siblings, 1 reply; 9+ messages in thread
From: Kushwaha Prabhakar-B32579 @ 2012-04-05  9:21 UTC (permalink / raw)
  To: Wood Scott-B07421, linux-mtd@lists.infradead.org

Hi,

 I checked latest mtd-utils ver 1.4.9 for file flash_erase.c. 

It usage MEMGETOOBSEL ioctl to get OOB information from the driver. But this ioctl may returns error for big NAND chips. 
The reason of failure would be the following condition at linux/driver/mtd/mtdchar.c
 if (mtd->ecclayout->eccbytes > ARRAY_SIZE(oi.eccpos))

MEMGETOOBSEL has been obsolete. then Why mtd-utils still using it.

Also, I don't think flash_erase.c supports MTD_OOB_AUTO. Although its support is already part of Linux kernel. 

Regards,
Prabhakar

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-04-18  6:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-05  9:21 Query mtd-utils v1.4.9 : flash_erase.c Kushwaha Prabhakar-B32579
2012-04-05 20:58 ` Brian Norris
2012-04-06  0:44   ` Kushwaha Prabhakar-B32579
2012-04-07  0:52     ` Brian Norris
2012-04-07 17:02       ` Mike Frysinger
2012-04-09  3:55         ` Kushwaha Prabhakar-B32579
2012-04-09  5:34           ` Mike Frysinger
2012-04-09  6:53             ` Kushwaha Prabhakar-B32579
2012-04-18  6:43               ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox