Re: XD/smartmedia - how to implement it right?

From: Maxim Levitsky
Date: Tue Dec 01 2009 - 11:42:03 EST


On Tue, 2009-12-01 at 08:10 -0800, Alex Dubov wrote:
>
> --- On Tue, 12/1/09, JÃrn Engel <joern@xxxxxxxxx> wrote:
>
> > From: JÃrn Engel <joern@xxxxxxxxx>
> > Subject: Re: XD/smartmedia - how to implement it right?
> > To: "Maxim Levitsky" <maximlevitsky@xxxxxxxxx>
> > Cc: "Alex Dubov" <oakad@xxxxxxxxx>, "linux-kernel" <linux-kernel@xxxxxxxxxxxxxxx>, arnd@xxxxxxxx, tglx@xxxxxxxxxxxx
> > Date: Tuesday, December 1, 2009, 12:22 AM
> > On Tue, 1 December 2009 01:04:26
> > +0200, Maxim Levitsky wrote:
> > >
> > > Alex, could you do me a favor, and explain why partial
> > block writes
> > > don't work?
> > > What happens if its done?
> >
> > With the Alauda and the limited set of cards I tried they
> > work.
> >
> > JÃrn
> >
>
> It's a bug particular to jmicron controllers.

Thanks!

So, I will write the driver for my controller using nand subsystem, and
then, I see what to do next.
If you write your mtd driver, I have no objection to port my driver to
yours (I assume that there will be a common core, just like the nand
subsystem, and small drivers.)


And the last question probably:

I know that xD is very similar to nand, but due to things like the
above, maybe full mtd driver is really better.
There will be some code duplication, but on the other hand the driver
could follow the way windows driver works more closely, thus making it
more compatable with xD cards.

So if I or Alex write the full blown mtd driver, there will be no
objections because of code duplication?


Anyway, now I am going to stop talking and start coding (I did quite in
depth review of mtd and nand systems already)


Best regards,
Maxim Levitsky

--
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/