Bug 9042

Summary: MEMSETOOBSEL mtd ioctl not implemented in the kernel
Product: Drivers Reporter: Deepak Saxena (dsaxena)
Component: Flash/Memory Technology DevicesAssignee: David Woodhouse (dwmw2)
Status: CLOSED CODE_FIX    
Severity: normal CC: tglx, yyyeer.bo
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.latest Subsystem:
Regression: --- Bisected commit-id:

Description Deepak Saxena 2007-09-19 17:06:44 UTC
Most recent kernel where this bug did not occur: Unknown
Distribution:
Hardware Environment: All
Software Environment: 
Problem Description:

See 

http://lists.infradead.org/pipermail/linux-mtd/2007-June/018682.html

and the continuation of the discussion at

http://lists.infradead.org/pipermail/linux-mtd/2007-July/018922.html

for details. In summary, commit ff268fb8791cf18df536113355d7184007c269d9
removed the MEMSETOOBSEL ioctl() but the MTD tools (nandwrite) still use 
it. MEMGETOOBSEL is still in the kernel, so either this is a kernel bug and MEMGETOOBSEL should be added, or the tool needs to be rewritten to not
use the ioctls and MEMGETOOBSEL needs to be deleted from the kernel.

Filling a bug b/c the email thread died and this is an obvious bug.
Comment 1 Deepak Saxena 2007-09-19 17:08:18 UTC
> MEMGETOOBSEL is still in the kernel, so either this is a kernel bug and
> MEMGETOOBSEL should be added, or the tool needs to be rewritten to not
  s/MEMGETOOBSEL/MEMSETOOBSEL/
> use the ioctls and MEMGETOOBSEL needs to be deleted from the kernel.