erasesize
Frederic Giasson
fgiasson at mediatrix.com
Tue Jun 5 09:03:19 EDT 2001
... Maybe it should be passed through the arg pointer in the
ioctl(), in a 2 u_long sized structure?
Frédéric Giasson
-----Original Message-----
From: Frederic Giasson [mailto:fgiasson at mediatrix.com]
Sent: Tuesday, June 05, 2001 8:49 AM
To: 'David Woodhouse'; Abraham vd Merwe
Cc: MTD for Linux
Subject: RE: erasesize
I have a question too about the erase->len ( erasesize ). I have a
flash chip with variable block sizes, and I am using cfi_cmdset_0002. Where
should that ->len be set? When I printk the value held by erase->len just
before calling do_erase_oneblock() in cfi_amdstd_erase_varsize(), I get a
dummy value. I suspect that it should be set according to the
mtd_erase_region_info structure, but it is not done.
Does anyone has a clue about it?
Thanks!
Frédéric Giasson
-----Original Message-----
From: David Woodhouse [mailto:dwmw2 at infradead.org]
Sent: Tuesday, June 05, 2001 8:30 AM
To: Abraham vd Merwe
Cc: MTD for Linux
Subject: Re: erasesize
abraham at 2d3d.co.za said:
> What should I set erasesize to when the flash chips have multiple
> erase sizes (and therefor I use eraseregions to get erasesize info)?
> Is 0 acceptable or should I set it to something else - it doesn't
> really make sense to put any value in this after all...
See the other Intel driver. Set the erase size to the 'major' erase size
for the device, then fill in the appropriate structure to represent the
other regions.
--
dwmw2
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
More information about the linux-mtd
mailing list