From: Jamie Lokier <jamie@shareable.org>
To: Bruce_Leonard@selinc.com
Cc: linux-mtd-bounces@lists.infradead.org,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
Bruce Leonard <brucle@earthlink.net>
Subject: Re: [PATCH 2/2] Add support for > 2GiB MTD devices
Date: Wed, 27 Aug 2008 19:51:42 +0100 [thread overview]
Message-ID: <20080827185142.GE27491@shareable.org> (raw)
In-Reply-To: <OF5BDBDD21.E5375C78-ON882574B2.0061B127-882574B2.00648B63@selinc.com>
Bruce_Leonard@selinc.com wrote:
> 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?
Are you sure it's always going to be a power of 2?
What if someone targets a board with 3 chips wired to shared address
and parallel data buses?
Or if someone makes a weird chip? Or if you can format it in
different ways according to desired ECC level (like you can with CDs)?
If there's ongoing conversation about ABI changes, it sounds like it
would be good for this change to be done together that, instead of
doing this change then changing the ABI _again_ shortly after and
having to support 3 different ABIs in tools instead of 2.
-- Jamie
next prev parent reply other threads:[~2008-08-27 18:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-19 21:27 [PATCH 2/2] Add support for > 2GiB MTD devices Bruce Leonard
2008-08-27 5:40 ` Artem Bityutskiy
2008-08-27 7:15 ` Bruce Leonard
2008-08-27 18:18 ` Bruce_Leonard
2008-08-27 18:51 ` Jamie Lokier [this message]
2008-08-27 21:52 ` Carl-Daniel Hailfinger
2008-08-27 22:32 ` Trent Piepho
2008-08-28 17:48 ` Bruce_Leonard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080827185142.GE27491@shareable.org \
--to=jamie@shareable.org \
--cc=Bruce_Leonard@selinc.com \
--cc=brucle@earthlink.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd-bounces@lists.infradead.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox