Re: [PATCH 2/2] Add support for > 2GiB MTD devices

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bruce_Leonard
Date: Wednesday, August 27, 2008 - 11:18 am

Artem,

independant
a->erasesize;

I'm still reluctant to change size to a 64-bit value.  There's a vague 
recolection of early conversations on the list that there would be little 
acceptance for that.  And that probably has to do with the ongoing 
conversation about ABI changes.  What I could do to eliminate the 
multiplication is introduce the same concept that the NAND layer uses, 
shift values.  After all, erasesize should always be a power of 2, making 
that a power of 2 multiplication which can be done via shifts.  By 
changing erasesize to erasesize_shift, I'd get something like this:

return a->num_eraseblocks == 0 ? a->size : a->num_eraseblocks << 
a->erasesize_shift

How would that suit you?

Bruce

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/2] Add support for &gt; 2GiB MTD devices, Artem Bityutskiy, (Tue Aug 26, 10:40 pm)
Re: [PATCH 2/2] Add support for &gt; 2GiB MTD devices, Bruce Leonard, (Wed Aug 27, 12:15 am)
Re: [PATCH 2/2] Add support for > 2GiB MTD devices, Bruce_Leonard, (Wed Aug 27, 11:18 am)
Re: [PATCH 2/2] Add support for &gt; 2GiB MTD devices, Jamie Lokier, (Wed Aug 27, 11:51 am)
Re: [PATCH 2/2] Add support for &gt; 2GiB MTD devices, Carl-Daniel Hailfinger, (Wed Aug 27, 2:52 pm)
Re: [PATCH 2/2] Add support for &gt; 2GiB MTD devices, Trent Piepho, (Wed Aug 27, 3:32 pm)
Re: [PATCH 2/2] Add support for &gt; 2GiB MTD devices, Bruce_Leonard, (Thu Aug 28, 10:48 am)