Re: Plan for adding XD support in mtd layer

From: JÃrn Engel
Date: Thu Nov 26 2009 - 08:42:58 EST


On Thu, 26 November 2009 15:02:54 +0200, Maxim Levitsky wrote:
>
> This one I have, and there is a brief description of the CIS format,
> which seems to indicate that its contents are predefined.

That is my understanding, yes. Essentially an xD card is just nand
flash in cheap packaging with the first block filled by CIS/IDI.

> I am afraid not.
>
>
> My plan is to create one 'meta' mtd driver for all XD controllers, and
> plug in small drivers.
>
> The meta driver and small driver will share the ->priv structure.
>
> I need a way to pass the ID from mtd driver to FTL, and to userspace via
> mtdchar.

You can also add a ->priv field to struct xD_data. Or you can have it
contain the mtd_info, and use container_of to access the xD information.

But those are details. Feel free to write the code either way. We can
sort out which method to use later.

JÃrn

--
Audacity augments courage; hesitation, fear.
-- Publilius Syrus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/