[PATCH] mtd m25p80: add support for Macronix MX25L12805D

Kevin Cernekee cernekee at gmail.com
Sun Oct 16 19:40:02 EDT 2011


On Sun, Oct 16, 2011 at 4:04 PM, Lennert Buytenhek
<buytenh at wantstofly.org> wrote:
> On Sat, Oct 15, 2011 at 05:32:42PM -0700, Kevin Paul Herbert wrote:
>
>> Is there a reason that you did not include SECT_4K for the MX25L12805D?
>> The chips that I have support it, and its in the data sheet. Was this
>> an oversight or is there a problem with some chips?
>
> An oversight.  If SECT_4K works for you (I don't have hardware to test
> with anymore), go ahead and submit a patch.

There are a couple of potential pitfalls with SECT_4K:

1) It can have a significant impact on performance and filesystem
overhead.  Erasing 16x 4KiB sectors may be considerably slower than
erasing one 64KiB block.  On a 2MiB flash it's probably well worth the
cost, but probably not on a 32MiB flash.

2) Enabling SECT_4K after the fact may break pre-existing UBI volumes,
since UBI sets its operating parameters based on the eraseblock size
reported from MTD.

3) Some devices do support 4KiB sectors, but only for specific ranges
(not across the whole device).



More information about the linux-mtd mailing list