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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bruce_Leonard
Date: Thursday, August 28, 2008 - 10:48 am

linux-mtd-bounces@lists.infradead.org wrote on 08/27/2008 02:52:24 PM:

vague 
little 
uses, 
making 

Well in that case I don't see that there's much option other than a 
multiplication.  If there were an odd number of eraseblocks (i.e., 3 
chips) you could still do the shifting operations.  But if someone has 
come up with a flash part that has a non-power of two sector/erasesize, 
then there's no way to do it by shift.  I supose I could just change 
erasesize to size64, make it a 64-bit type and do this:

return a->num_eraseblocks == 0 ? a->size : a->size64

Doesn't seem quite as elegant, but it is simpler.  What ever I do, I can't 
change the meaning or type of size.  That's an kernel <=> userspace ABI 
change, and we know what happens when I try to do that ;).

Bruce

------------------------------------------------

This e-mail may contain SEL confidential information.  The opinions
expressed are not necessarily those of SEL.  Any unauthorized disclosure,
distribution or other use is prohibited.  If you received this e-mail in
error, please notify the sender, permanently delete it, and destroy any
printout.

Thank you.

------------------------------------------------
--
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 &gt; 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 > 2GiB MTD devices, Bruce_Leonard, (Thu Aug 28, 10:48 am)