public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* bad .eccbytes from MEMGETOOBSEL / ECCGETLAYOUT
@ 2006-10-17 14:40 Ricard Wanderlof
  2006-10-17 14:42 ` Artem Bityutskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Ricard Wanderlof @ 2006-10-17 14:40 UTC (permalink / raw)
  To: Linux mtd

[-- Attachment #1: Type: TEXT/PLAIN, Size: 930 bytes --]


When using the now obsolete MEMGETOOBSEL ioctl to get ECC info, 
the mtd shipped with Linux 2.6.18 seems to return garbage in the 
nand_oobinfo.eccbytes structure. Looking in the code in the latest GIT 
source it indeed seems like this field is never filled in.

I tried to obtain similar info from the new ECCGETLAYOUT ioctl, but again 
the nand_ecclayout.eccbytes field appears to contain garbage, as does the 
.eccpos[] array. I've checked that the ioctl code actually copies 
something to the userspace struct but have not dived deeper into what the 
'something' actually contains.

Is this interface something that is in the process of getting implemented, 
or has something broken along the way?

/Ricard
--
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30

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

* Re: bad .eccbytes from MEMGETOOBSEL / ECCGETLAYOUT
  2006-10-17 14:40 bad .eccbytes from MEMGETOOBSEL / ECCGETLAYOUT Ricard Wanderlof
@ 2006-10-17 14:42 ` Artem Bityutskiy
  0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2006-10-17 14:42 UTC (permalink / raw)
  To: Ricard Wanderlof; +Cc: Linux mtd

On Tue, 2006-10-17 at 16:40 +0200, Ricard Wanderlof wrote:
> Is this interface something that is in the process of getting implemented, 
> or has something broken along the way?
I think - the latter.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

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

end of thread, other threads:[~2006-10-17 14:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-17 14:40 bad .eccbytes from MEMGETOOBSEL / ECCGETLAYOUT Ricard Wanderlof
2006-10-17 14:42 ` Artem Bityutskiy

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