From: Kevin Cernekee <kpc.mtd@gmail.com>
To: David Brownell <david-b@pacbell.net>
Cc: Linux MTD <linux-mtd@lists.infradead.org>,
Kay Sievers <kay.sievers@vrfy.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [patch/rfc 2.6.29 1/2] MTD: driver model updates
Date: Tue, 31 Mar 2009 21:49:03 -0700 [thread overview]
Message-ID: <a95a62fe0903312149j482c1684k564896e1981f9819@mail.gmail.com> (raw)
In-Reply-To: <200903312021.25165.david-b@pacbell.net>
On 3/31/09, David Brownell <david-b@pacbell.net> wrote:
>> 2) region_info_user fields? Not really sure how this would work.
>> Maybe a separate subdirectory for each region?
>
> I'm not sure I've ever had reason to care about a "region" (whatever
> that is!) with MTD hardware.
Erase Block Regions. From the CFI spec:
"x specifies the number of regions within the device containing one or
more contiguous Erase Blocks of the same size. For example, a 128KB
device (1Mb) having blocking of 16KB, 8KB, four 2KB, two 16KB, and one
64KB is considered to have 5 Erase Block Regions."
This is fairly common on parallel NOR devices. Probably less so on
huge NAND devices.
> I suspect that a lot of interesting questions could come up in
> the context of enhancing mtd-utils to work with sysfs and bigger
> NAND chips. Some might relate to "regions".
Right, this sysfs requirement raises a number of issues that need to
be fully thought out in order to make sure the new interface is a
suitable replacement for the "INFO" ioctls. For instance:
1) If each region is a subdirectory, are user programs supposed to use
readdir() to count them? Is ioctl(MEMGETREGIONCOUNT) still the
preferred method? Or do we make a new "regioncount" sysfs attribute?
(A somewhat related question is whether MEMGETREGIONCOUNT only exists
because it was impossible to expand the MEMGETINFO struct. After all,
it's just copying another field from the mtd_info struct.)
2) How are user programs expected to access MTD sysfs? Do we
introduce a new libsysfs dependency, or roll our own implementation?
Are there any past examples of ioctls being phased out in favor of
sysfs, particularly in subsystems that are popular on embedded
platforms?
3) What should the mtd-utils changes look like? Do we define
backward-compatibility wrapper functions that try to work the same way
the ioctls used to? New libraries and layers of abstraction? Or
something in the middle?
next prev parent reply other threads:[~2009-04-01 4:49 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-26 7:42 David Brownell
2009-03-31 21:18 ` David Brownell
2009-03-31 23:51 ` Kay Sievers
2009-04-01 13:43 ` Juergen Beisert
2009-04-01 1:17 ` Kevin Cernekee
2009-04-01 3:21 ` David Brownell
2009-04-01 4:49 ` Kevin Cernekee [this message]
2009-04-01 6:36 ` David Brownell
2009-04-02 23:41 ` Kevin Cernekee
2009-04-03 7:03 ` Artem Bityutskiy
2009-04-03 7:09 ` Artem Bityutskiy
2009-04-03 20:00 ` Kevin Cernekee
2009-04-04 14:36 ` David Woodhouse
2009-04-04 16:17 ` Kevin Cernekee
2009-04-04 16:20 ` David Brownell
2009-04-04 16:29 ` David Woodhouse
2009-04-04 17:18 ` David Brownell
2009-04-06 5:34 ` Greg KH
2009-04-03 10:04 ` David Woodhouse
2009-04-03 17:24 ` David Brownell
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=a95a62fe0903312149j482c1684k564896e1981f9819@mail.gmail.com \
--to=kpc.mtd@gmail.com \
--cc=david-b@pacbell.net \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®