public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Removable flash storage
@ 2004-11-17  3:06 Brad Beveridge
       [not found] ` <419BCFA2.5090900@bluewatersys.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Brad Beveridge @ 2004-11-17  3:06 UTC (permalink / raw)
  To: linux-mtd

Hello all.
I am working with a device that has 3 nand flash slots, two are internal 
and not removable, one is external and is removable.
We currently have a single driver that registers partitions on each card 
at kernel boot time.  All three cards work, and we use yaffs as a 
filesystem on top of MTD.
I am trying to come up with a clean way of allowing the external card to 
be inserted/removed at runtime.
One solution is to have a seperate nand driver for that card & build it 
as a module, then simply modprobe/rmmod.  However, that solution isn't 
so great because we then have two driver source files that are 
essentially the same.
We also thought that a /proc based solution might work, where you write 
"eject 3" or something to /proc/mtd.

What will play nicest with MTD as it stands?  If I need to break the 
driver up, is there any suggestions for minimising code duplication?

Cheers
Brad

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-17 23:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-17  3:06 Removable flash storage Brad Beveridge
     [not found] ` <419BCFA2.5090900@bluewatersys.com>
2004-11-17 23:23   ` Brad Beveridge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox