fgiasson at mediatrix.com
Tue Jun 5 08:49:24 EDT 2001
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?
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
Linux MTD discussion mailing list
More information about the linux-mtd